• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / sitemesh2 / 59

22 Mar 2026 02:30AM UTC coverage: 40.347%. Remained the same
59

push

github

hazendaz
[mvn] Update maven wrapper

698 of 1891 branches covered (36.91%)

Branch coverage included in aggregate %.

1555 of 3693 relevant lines covered (42.11%)

0.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/opensymphony/module/sitemesh/mapper/NullDecoratorMapper.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * Copyright 2011-2026 Hazendaz
4
 */
5
/*
6
 * Title:        NullDecoratorMapper
7
 * Description:
8
 *
9
 * This software is published under the terms of the OpenSymphony Software
10
 * License version 1.1, of which a copy has been included with this
11
 * distribution in the LICENSE.txt file.
12
 */
13

14
package com.opensymphony.module.sitemesh.mapper;
15

16
import com.opensymphony.module.sitemesh.Config;
17
import com.opensymphony.module.sitemesh.Decorator;
18
import com.opensymphony.module.sitemesh.DecoratorMapper;
19
import com.opensymphony.module.sitemesh.Page;
20

21
import jakarta.servlet.http.HttpServletRequest;
22

23
import java.util.Properties;
24

25
/**
26
 * The NullDecoratorMapper represents the top-level DecoratorMapper that is finally delegated to if no other
27
 * DecoratorMapper has intervened. It is used so the parent property does not have to be checked by other
28
 * DecoratorMappers (null object pattern).
29
 *
30
 * @author <a href="mailto:joe@truemesh.com">Joe Walnes</a>
31
 *
32
 * @see com.opensymphony.module.sitemesh.DecoratorMapper
33
 */
34
public class NullDecoratorMapper implements DecoratorMapper {
×
35

36
    /** Does nothing. */
37
    @Override
38
    public void init(Config config, Properties properties, DecoratorMapper parent) {
39
    }
×
40

41
    /** Returns null. */
42
    @Override
43
    public Decorator getDecorator(HttpServletRequest request, Page page) {
44
        return null;
×
45
    }
46

47
    /** Returns null. */
48
    @Override
49
    public Decorator getNamedDecorator(HttpServletRequest request, String name) {
50
        return null;
×
51
    }
52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc