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

hazendaz / displaytag / 1753

12 Feb 2026 03:17AM UTC coverage: 77.321% (-0.01%) from 77.334%
1753

push

github

web-flow
Merge pull request #1102 from hazendaz/renovate/javax-support-logback-monorepo

Update dependency ch.qos.logback:logback-classic to v1.5.29 (javax-support)

1438 of 2003 branches covered (71.79%)

Branch coverage included in aggregate %.

4034 of 5074 relevant lines covered (79.5%)

0.8 hits per line

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

81.25
/displaytag/src/main/java/org/displaytag/tags/CaptionTagBeanInfo.java
1
/*
2
 * SPDX-License-Identifier: MIT
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2002-2026 Fabrizio Giustina, the Displaytag team
6
 */
7
package org.displaytag.tags;
8

9
import java.beans.IntrospectionException;
10
import java.beans.PropertyDescriptor;
11
import java.beans.SimpleBeanInfo;
12
import java.util.ArrayList;
13
import java.util.List;
14

15
/**
16
 * Needed to make the "class" tag attribute working.
17
 */
18
public class CaptionTagBeanInfo extends SimpleBeanInfo {
1✔
19

20
    /**
21
     * Gets the property descriptors.
22
     *
23
     * @return the property descriptors
24
     *
25
     * @see java.beans.BeanInfo#getPropertyDescriptors()
26
     */
27
    @Override
28
    public PropertyDescriptor[] getPropertyDescriptors() {
29
        final List<PropertyDescriptor> proplist = new ArrayList<>();
1✔
30

31
        try {
32
            proplist.add(new PropertyDescriptor("class", //$NON-NLS-1$
1✔
33
                    CaptionTag.class, null, "setClass")); //$NON-NLS-1$
34
            proplist.add(new PropertyDescriptor("dir", //$NON-NLS-1$
1✔
35
                    CaptionTag.class, null, "setDir")); //$NON-NLS-1$
36
            proplist.add(new PropertyDescriptor("id", //$NON-NLS-1$
1✔
37
                    CaptionTag.class, null, "setId")); //$NON-NLS-1$
38
            proplist.add(new PropertyDescriptor("lang", //$NON-NLS-1$
1✔
39
                    CaptionTag.class, null, "setLang")); //$NON-NLS-1$
40
            proplist.add(new PropertyDescriptor("media", //$NON-NLS-1$
1✔
41
                    CaptionTag.class, null, "setMedia")); //$NON-NLS-1$
42
            proplist.add(new PropertyDescriptor("style", //$NON-NLS-1$
1✔
43
                    CaptionTag.class, null, "setStyle")); //$NON-NLS-1$
44
            proplist.add(new PropertyDescriptor("title", //$NON-NLS-1$
1✔
45
                    CaptionTag.class, null, "setTitle")); //$NON-NLS-1$
46

47
            // make ATG Dynamo happy:
48
            // Attribute "className" of tag "caption" in taglib descriptor file displaytag-11.tld" must have a
49
            // corresponding property in class "org.displaytag.tags.CaptionTag" with a public setter method
50
            proplist.add(new PropertyDescriptor("className", //$NON-NLS-1$
1✔
51
                    CaptionTag.class, null, "setClass")); //$NON-NLS-1$
52
        } catch (final IntrospectionException ex) {
×
53
            throw new RuntimeException("You got an introspection exception - maybe defining a property that is not"
×
54
                    + " defined in the CaptionTag?: " + ex.getMessage(), ex);
×
55
        }
1✔
56

57
        final PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()];
1✔
58
        return proplist.toArray(result);
1✔
59
    }
60

61
}
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