PMD Results
The following document contains the results of PMD 6.55.0.
Violations By Priority
Priority 3
org/apache/struts/tiles/AttributeDefinition.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getValue': the method is declared in an interface type |
37 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setRole': the method is declared in an interface type |
42 |
org/apache/struts/tiles/ComponentDefinitionsFactory.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getDefinition': the method is declared in an interface type |
52 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'initFactory': the method is declared in an interface type |
63 |
org/apache/struts/tiles/Controller.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'perform': the method is declared in an interface type |
51–56 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'execute': the method is declared in an interface type |
67–72 |
org/apache/struts/tiles/DefinitionsFactory.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getDefinition': the method is declared in an interface type |
58–59 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'init': the method is declared in an interface type |
70–71 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'destroy': the method is declared in an interface type |
77 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setConfig': the method is declared in an interface type |
89–90 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getConfig': the method is declared in an interface type |
96 |
org/apache/struts/tiles/DefinitionsFactoryConfig.java
org/apache/struts/tiles/DefinitionsFactoryException.java
org/apache/struts/tiles/beans/MenuItem.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setValue': the method is declared in an interface type |
35 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getValue': the method is declared in an interface type |
40 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setLink': the method is declared in an interface type |
45 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getLink': the method is declared in an interface type |
50 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setIcon': the method is declared in an interface type |
55 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getIcon': the method is declared in an interface type |
60 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setTooltip': the method is declared in an interface type |
65 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getTooltip': the method is declared in an interface type |
70 |
org/apache/struts/tiles/taglib/ComponentConstants.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'COMPONENT_CONTEXT': the field is declared in an interface type |
32 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'COMPONENT_SCOPE': the field is declared in an interface type |
34 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'LOCALE_KEY': the field is declared in an interface type |
35 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'EXCEPTION_KEY': the field is declared in an interface type |
36 |
org/apache/struts/tiles/taglib/ImportAttributeTag.java
org/apache/struts/tiles/taglib/InsertTag.java
org/apache/struts/tiles/xmlDefinition/I18nFactorySet.java
Priority 4
org/apache/struts/tiles/TilesRequestProcessor.java
org/apache/struts/tiles/TilesUtilImpl.java
org/apache/struts/tiles/actions/ReloadDefinitionsAction.java
org/apache/struts/tiles/actions/ViewDefinitionsAction.java
org/apache/struts/tiles/commands/TilesPreProcessor.java
org/apache/struts/tiles/definition/ComponentDefinitionsFactoryWrapper.java
org/apache/struts/tiles/taglib/AttributeToScopeTag.java
org/apache/struts/tiles/taglib/DefinitionTag.java
org/apache/struts/tiles/taglib/ImportAttributeTag.java
org/apache/struts/tiles/taglib/PutListTag.java
org/apache/struts/tiles/taglib/PutTag.java
org/apache/struts/tiles/taglib/UseAttributeTag.java
Files
org/apache/struts/tiles/AttributeDefinition.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getValue': the method is declared in an interface type |
3 |
37 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setRole': the method is declared in an interface type |
3 |
42 |
org/apache/struts/tiles/ComponentDefinitionsFactory.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getDefinition': the method is declared in an interface type |
3 |
52 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'initFactory': the method is declared in an interface type |
3 |
63 |
org/apache/struts/tiles/Controller.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'perform': the method is declared in an interface type |
3 |
51–56 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'execute': the method is declared in an interface type |
3 |
67–72 |
org/apache/struts/tiles/DefinitionsFactory.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getDefinition': the method is declared in an interface type |
3 |
58–59 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'init': the method is declared in an interface type |
3 |
70–71 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'destroy': the method is declared in an interface type |
3 |
77 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setConfig': the method is declared in an interface type |
3 |
89–90 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getConfig': the method is declared in an interface type |
3 |
96 |
org/apache/struts/tiles/DefinitionsFactoryConfig.java
org/apache/struts/tiles/DefinitionsFactoryException.java
org/apache/struts/tiles/TilesRequestProcessor.java
org/apache/struts/tiles/TilesUtilImpl.java
org/apache/struts/tiles/actions/ReloadDefinitionsAction.java
org/apache/struts/tiles/actions/ViewDefinitionsAction.java
org/apache/struts/tiles/beans/MenuItem.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setValue': the method is declared in an interface type |
3 |
35 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getValue': the method is declared in an interface type |
3 |
40 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setLink': the method is declared in an interface type |
3 |
45 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getLink': the method is declared in an interface type |
3 |
50 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setIcon': the method is declared in an interface type |
3 |
55 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getIcon': the method is declared in an interface type |
3 |
60 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setTooltip': the method is declared in an interface type |
3 |
65 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getTooltip': the method is declared in an interface type |
3 |
70 |
org/apache/struts/tiles/commands/TilesPreProcessor.java
org/apache/struts/tiles/definition/ComponentDefinitionsFactoryWrapper.java
org/apache/struts/tiles/taglib/AttributeToScopeTag.java
org/apache/struts/tiles/taglib/ComponentConstants.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'COMPONENT_CONTEXT': the field is declared in an interface type |
3 |
32 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'COMPONENT_SCOPE': the field is declared in an interface type |
3 |
34 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'LOCALE_KEY': the field is declared in an interface type |
3 |
35 |
UnnecessaryModifier |
Unnecessary modifiers 'public static final' on field 'EXCEPTION_KEY': the field is declared in an interface type |
3 |
36 |
org/apache/struts/tiles/taglib/DefinitionTag.java
org/apache/struts/tiles/taglib/ImportAttributeTag.java
org/apache/struts/tiles/taglib/InsertTag.java
Rule |
Violation |
Priority |
Line |
EmptyCatchBlock |
Avoid empty catch blocks |
3 |
718–720 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'doStartTag': the method is declared in an interface type |
3 |
774 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'doEndTag': the method is declared in an interface type |
3 |
778 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'putAttribute': the method is declared in an interface type |
3 |
782 |
org/apache/struts/tiles/taglib/PutListTag.java
org/apache/struts/tiles/taglib/PutTag.java
org/apache/struts/tiles/taglib/UseAttributeTag.java
org/apache/struts/tiles/xmlDefinition/I18nFactorySet.java