PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 3
jaxen - org/jaxen/dom/DocumentNavigator.java
jaxen - org/jaxen/dom4j/DocumentNavigator.java
jaxen - org/jaxen/expr/DefaultStep.java
jaxen - org/jaxen/javabean/DocumentNavigator.java
jaxen - org/jaxen/jdom/DocumentNavigator.java
jaxen - org/jaxen/pattern/LocationPathPattern.java
jaxen - org/jaxen/pattern/UnionPattern.java
jaxen - org/jaxen/saxpath/Operator.java
| Rule |
Violation |
Line |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'NO_OP': the field is declared in an interface type |
55 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'EQUALS': the field is declared in an interface type |
62 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'NOT_EQUALS': the field is declared in an interface type |
67 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'LESS_THAN': the field is declared in an interface type |
73 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'LESS_THAN_EQUALS': the field is declared in an interface type |
78 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'GREATER_THAN': the field is declared in an interface type |
83 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'GREATER_THAN_EQUALS': the field is declared in an interface type |
88 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'ADD': the field is declared in an interface type |
95 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'SUBTRACT': the field is declared in an interface type |
100 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'MULTIPLY': the field is declared in an interface type |
107 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'MOD': the field is declared in an interface type |
113 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'DIV': the field is declared in an interface type |
119 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'NEGATIVE': the field is declared in an interface type |
126 |
jaxen - org/jaxen/saxpath/helpers/XPathReaderFactory.java
jaxen - org/jaxen/xom/DocumentNavigator.java
Priority 4
jaxen - org/jaxen/BaseXPath.java
| Rule |
Violation |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.jaxen': 'XPathSyntaxException' is already in scope because it is declared in the same package |
111 |
jaxen - org/jaxen/JaxenHandler.java
jaxen - org/jaxen/QualifiedName.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `localName.hashCode() ^ namespaceURI.hashCode()`. |
76 |
| UselessParentheses |
Useless parentheses around `namespaceURI.equals(other.namespaceURI) && othe...`. |
87–88 |
jaxen - org/jaxen/dom/DocumentNavigator.java
jaxen - org/jaxen/dom/NamespaceNode.java
jaxen - org/jaxen/dom4j/DocumentNavigator.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `obj instanceof Text || obj instanceof CDATA`. |
118–120 |
jaxen - org/jaxen/expr/DefaultNameStep.java
jaxen - org/jaxen/expr/DefaultTruthExpr.java
jaxen - org/jaxen/expr/iter/IterableAttributeAxis.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `support.getNavigator() instanceof NamedAccessNa...`. |
100 |
jaxen - org/jaxen/expr/iter/IterableChildAxis.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `support.getNavigator() instanceof NamedAccessNa...`. |
102 |
jaxen - org/jaxen/function/BooleanFunction.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `((String) obj).length() > 0 ? Boolean.TRUE : Bo...`. |
179–181 |
jaxen - org/jaxen/function/ContainsFunction.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `(str.indexOf(match) >= 0) ? Boolean.TRUE : Bool...`. |
123–126 |
jaxen - org/jaxen/function/NotFunction.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `BooleanFunction.evaluate(obj, nav).booleanValue...`. |
108–111 |
| UselessParentheses |
Useless parentheses around `BooleanFunction.evaluate(obj, nav).booleanValue()`. |
108 |
jaxen - org/jaxen/function/StartsWithFunction.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `str.startsWith(match) ? Boolean.TRUE : Boolean....`. |
121–124 |
jaxen - org/jaxen/function/SubstringFunction.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `StringLengthFunction.evaluate(args.get(0), nav)`. |
173 |
jaxen - org/jaxen/function/ext/EndsWithFunction.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `str.endsWith(match) ? Boolean.TRUE : Boolean.FALSE`. |
81–84 |
jaxen - org/jaxen/javabean/DocumentNavigator.java
jaxen - org/jaxen/jdom/DocumentNavigator.java
jaxen - org/jaxen/jdom/XPathNamespace.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `"[xmlns:" + jdomNamespace.getPrefix() + "=\"" +...`. |
100–102 |
jaxen - org/jaxen/pattern/NameTest.java
jaxen - org/jaxen/pattern/NamespaceTest.java
| Rule |
Violation |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'ELEMENT_NODE' is already in scope because it is inherited by an enclosing type |
74 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'ATTRIBUTE_NODE' is already in scope because it is inherited by an enclosing type |
79 |
jaxen - org/jaxen/pattern/TextNodeTest.java
| Rule |
Violation |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'TEXT_NODE' is already in scope because it is inherited by an enclosing type |
70 |
jaxen - org/jaxen/saxpath/base/Token.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `"[ (" + tokenType + ") (" + getTokenText() + ")"`. |
107 |
jaxen - org/jaxen/saxpath/base/TokenTypes.java
| Rule |
Violation |
Line |
| UselessParentheses |
Useless parentheses around `"Unrecognized token type: " + tokenType`. |
176 |
jaxen - org/jaxen/saxpath/base/Verifier.java
jaxen - org/jaxen/saxpath/base/XPathLexer.java
jaxen - org/jaxen/util/PrecedingSiblingAxisIterator.java
jaxen - org/jaxen/xom/DocumentNavigator.java
Files
jaxen - org/jaxen/BaseXPath.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'org.jaxen': 'XPathSyntaxException' is already in scope because it is declared in the same package |
4 |
111 |
jaxen - org/jaxen/JaxenHandler.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `peekFrame().size() > 0`. |
4 |
596 |
jaxen - org/jaxen/QualifiedName.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `localName.hashCode() ^ namespaceURI.hashCode()`. |
4 |
76 |
| UselessParentheses |
Useless parentheses around `namespaceURI.equals(other.namespaceURI) && othe...`. |
4 |
87–88 |
jaxen - org/jaxen/dom/DocumentNavigator.java
jaxen - org/jaxen/dom/NamespaceNode.java
jaxen - org/jaxen/dom4j/DocumentNavigator.java
jaxen - org/jaxen/expr/DefaultNameStep.java
jaxen - org/jaxen/expr/DefaultStep.java
jaxen - org/jaxen/expr/DefaultTruthExpr.java
jaxen - org/jaxen/expr/iter/IterableAttributeAxis.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `support.getNavigator() instanceof NamedAccessNa...`. |
4 |
100 |
jaxen - org/jaxen/expr/iter/IterableChildAxis.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `support.getNavigator() instanceof NamedAccessNa...`. |
4 |
102 |
jaxen - org/jaxen/function/BooleanFunction.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `((String) obj).length() > 0 ? Boolean.TRUE : Bo...`. |
4 |
179–181 |
jaxen - org/jaxen/function/ContainsFunction.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `(str.indexOf(match) >= 0) ? Boolean.TRUE : Bool...`. |
4 |
123–126 |
jaxen - org/jaxen/function/NotFunction.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `BooleanFunction.evaluate(obj, nav).booleanValue...`. |
4 |
108–111 |
| UselessParentheses |
Useless parentheses around `BooleanFunction.evaluate(obj, nav).booleanValue()`. |
4 |
108 |
jaxen - org/jaxen/function/StartsWithFunction.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `str.startsWith(match) ? Boolean.TRUE : Boolean....`. |
4 |
121–124 |
jaxen - org/jaxen/function/SubstringFunction.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `StringLengthFunction.evaluate(args.get(0), nav)`. |
4 |
173 |
jaxen - org/jaxen/function/ext/EndsWithFunction.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `str.endsWith(match) ? Boolean.TRUE : Boolean.FALSE`. |
4 |
81–84 |
jaxen - org/jaxen/javabean/DocumentNavigator.java
jaxen - org/jaxen/jdom/DocumentNavigator.java
jaxen - org/jaxen/jdom/XPathNamespace.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `"[xmlns:" + jdomNamespace.getPrefix() + "=\"" +...`. |
4 |
100–102 |
jaxen - org/jaxen/pattern/LocationPathPattern.java
jaxen - org/jaxen/pattern/NameTest.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'ELEMENT_NODE' is already in scope because it is inherited by an enclosing type |
4 |
68 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'ATTRIBUTE_NODE' is already in scope because it is inherited by an enclosing type |
4 |
73 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'ATTRIBUTE_NODE' is already in scope because it is inherited by an enclosing type |
4 |
106 |
jaxen - org/jaxen/pattern/NamespaceTest.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'ELEMENT_NODE' is already in scope because it is inherited by an enclosing type |
4 |
74 |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'ATTRIBUTE_NODE' is already in scope because it is inherited by an enclosing type |
4 |
79 |
jaxen - org/jaxen/pattern/TextNodeTest.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryFullyQualifiedName |
Unnecessary qualifier 'Pattern': 'TEXT_NODE' is already in scope because it is inherited by an enclosing type |
4 |
70 |
jaxen - org/jaxen/pattern/UnionPattern.java
jaxen - org/jaxen/saxpath/Operator.java
| Rule |
Violation |
Priority |
Line |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'NO_OP': the field is declared in an interface type |
3 |
55 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'EQUALS': the field is declared in an interface type |
3 |
62 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'NOT_EQUALS': the field is declared in an interface type |
3 |
67 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'LESS_THAN': the field is declared in an interface type |
3 |
73 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'LESS_THAN_EQUALS': the field is declared in an interface type |
3 |
78 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'GREATER_THAN': the field is declared in an interface type |
3 |
83 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'GREATER_THAN_EQUALS': the field is declared in an interface type |
3 |
88 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'ADD': the field is declared in an interface type |
3 |
95 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'SUBTRACT': the field is declared in an interface type |
3 |
100 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'MULTIPLY': the field is declared in an interface type |
3 |
107 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'MOD': the field is declared in an interface type |
3 |
113 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'DIV': the field is declared in an interface type |
3 |
119 |
| UnnecessaryModifier |
Unnecessary modifiers 'static final' on field 'NEGATIVE': the field is declared in an interface type |
3 |
126 |
jaxen - org/jaxen/saxpath/base/Token.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `"[ (" + tokenType + ") (" + getTokenText() + ")"`. |
4 |
107 |
jaxen - org/jaxen/saxpath/base/TokenTypes.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `"Unrecognized token type: " + tokenType`. |
4 |
176 |
jaxen - org/jaxen/saxpath/base/Verifier.java
| Rule |
Violation |
Priority |
Line |
| UselessParentheses |
Useless parentheses around `isXMLLetter(c) || isXMLDigit(c) || c == '.' || ...`. |
4 |
63–65 |
| UselessParentheses |
Useless parentheses around `isXMLLetter(c) || c == '_'`. |
4 |
80 |
jaxen - org/jaxen/saxpath/base/XPathLexer.java
jaxen - org/jaxen/saxpath/helpers/XPathReaderFactory.java
jaxen - org/jaxen/util/PrecedingSiblingAxisIterator.java
jaxen - org/jaxen/xom/DocumentNavigator.java