PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 3

jaxen - org/jaxen/VariableContext.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getVariableValue': the method is declared in an interface type 102

jaxen - org/jaxen/dom/DocumentNavigator.java

Rule Violation Line
EmptyControlStatement Empty if statement 387396
EmptyCatchBlock Avoid empty catch blocks 479480
EmptyCatchBlock Avoid empty catch blocks 518519
EmptyCatchBlock Avoid empty catch blocks 539540
EmptyCatchBlock Avoid empty catch blocks 579580

jaxen - org/jaxen/dom4j/DocumentNavigator.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 232234

jaxen - org/jaxen/expr/DefaultStep.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 146150

jaxen - org/jaxen/expr/FilterExpr.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'asBoolean': the method is declared in an interface type 69
UnnecessaryModifier Unnecessary modifier 'public' on method 'getExpr': the method is declared in an interface type 74

jaxen - org/jaxen/expr/FunctionCallExpr.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrefix': the method is declared in an interface type 60
UnnecessaryModifier Unnecessary modifier 'public' on method 'getFunctionName': the method is declared in an interface type 67
UnnecessaryModifier Unnecessary modifier 'public' on method 'addParameter': the method is declared in an interface type 74
UnnecessaryModifier Unnecessary modifier 'public' on method 'getParameters': the method is declared in an interface type 82

jaxen - org/jaxen/expr/LiteralExpr.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLiteral': the method is declared in an interface type 60

jaxen - org/jaxen/expr/NameStep.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrefix': the method is declared in an interface type 59
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLocalName': the method is declared in an interface type 66

jaxen - org/jaxen/expr/NumberExpr.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getNumber': the method is declared in an interface type 58

jaxen - org/jaxen/expr/ProcessingInstructionNodeStep.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getName': the method is declared in an interface type 51

jaxen - org/jaxen/expr/Step.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getAxis': the method is declared in an interface type 94

jaxen - org/jaxen/expr/VariableReferenceExpr.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrefix': the method is declared in an interface type 58
UnnecessaryModifier Unnecessary modifier 'public' on method 'getVariableName': the method is declared in an interface type 65

jaxen - org/jaxen/javabean/DocumentNavigator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 222225
EmptyCatchBlock Avoid empty catch blocks 226229

jaxen - org/jaxen/jdom/DocumentNavigator.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 247248
CollapsibleIfStatements This if statement could be combined with its parent 269270
CollapsibleIfStatements This if statement could be combined with its parent 300303

jaxen - org/jaxen/pattern/LocationPathPattern.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 104107

jaxen - org/jaxen/pattern/UnionPattern.java

Rule Violation Line
UnusedNullCheckInEquals Invoke equals() on the object you've already ensured is not null 150

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8790

jaxen - org/jaxen/xom/DocumentNavigator.java

Rule Violation Line
UselessOverridingMethod Overriding method merely calls super 269
UselessOverridingMethod Overriding method merely calls super 273
EmptyControlStatement Empty if statement 293301

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 110

jaxen - org/jaxen/JaxenHandler.java

Rule Violation Line
UselessParentheses Useless parentheses around `peekFrame().size() > 0`. 596

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...`. 8788

jaxen - org/jaxen/dom/DocumentNavigator.java

Rule Violation Line
UselessParentheses Useless parentheses around `object instanceof NamespaceNode`. 606
UselessParentheses Useless parentheses around `node != null`. 911

jaxen - org/jaxen/dom/NamespaceNode.java

Rule Violation Line
UselessParentheses Useless parentheses around `equals(parent, ns.getParentNode()) && equals(na...`. 514516
UselessParentheses Useless parentheses around `o == null ? 0 : o.hashCode()`. 532
UselessParentheses Useless parentheses around `(a == null && b == null) || (a != null && a.equ...`. 546547

jaxen - org/jaxen/dom4j/DocumentNavigator.java

Rule Violation Line
UselessParentheses Useless parentheses around `obj instanceof Text || obj instanceof CDATA`. 118120

jaxen - org/jaxen/expr/DefaultNameStep.java

Rule Violation Line
UselessParentheses Useless parentheses around `!matchesAnyName && iterableAxis.supportsNamedAc...`. 158
UselessParentheses Useless parentheses around `uri != null && uri.length() > 0`. 380
UselessParentheses Useless parentheses around `uri2.length() == 0`. 395
UselessParentheses Useless parentheses around `uri1.length() == 0`. 398

jaxen - org/jaxen/expr/DefaultTruthExpr.java

Rule Violation Line
UselessParentheses Useless parentheses around `lhs instanceof List && rhs instanceof List`. 6466
UselessParentheses Useless parentheses around `lhs instanceof List || rhs instanceof List`. 7274
UselessParentheses Useless parentheses around `obj instanceof List`. 79
UselessParentheses Useless parentheses around `obj instanceof Boolean`. 84
UselessParentheses Useless parentheses around `set == null || set.isEmpty()`. 89
UselessParentheses Useless parentheses around `lhs instanceof Boolean || rhs instanceof Boolean`. 9597
UselessParentheses Useless parentheses around `lhs instanceof Boolean && rhs instanceof Boolean`. 103105
UselessParentheses Useless parentheses around `lhs instanceof Number || rhs instanceof Number`. 111113

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...`. 179181

jaxen - org/jaxen/function/ContainsFunction.java

Rule Violation Line
UselessParentheses Useless parentheses around `(str.indexOf(match) >= 0) ? Boolean.TRUE : Bool...`. 123126

jaxen - org/jaxen/function/NotFunction.java

Rule Violation Line
UselessParentheses Useless parentheses around `BooleanFunction.evaluate(obj, nav).booleanValue...`. 108111
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....`. 121124

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`. 8184

jaxen - org/jaxen/javabean/DocumentNavigator.java

Rule Violation Line
UselessParentheses Useless parentheses around `obj instanceof Element`. 84
UselessParentheses Useless parentheses around `obj instanceof String`. 94

jaxen - org/jaxen/jdom/DocumentNavigator.java

Rule Violation Line
UselessParentheses Useless parentheses around `obj instanceof Text || obj instanceof CDATA`. 111113
UselessParentheses Useless parentheses around `namespaceURI == null ? Namespace.NO_NAMESPACE :...`. 362363

jaxen - org/jaxen/jdom/XPathNamespace.java

Rule Violation Line
UselessParentheses Useless parentheses around `"[xmlns:" + jdomNamespace.getPrefix() + "=\"" +...`. 100102

jaxen - org/jaxen/pattern/NameTest.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Pattern': 'ELEMENT_NODE' is already in scope because it is inherited by an enclosing type 68
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Pattern': 'ATTRIBUTE_NODE' is already in scope because it is inherited by an enclosing type 73
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Pattern': 'ATTRIBUTE_NODE' is already in scope because it is inherited by an enclosing type 106

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/XPathHandler.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 68
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 72
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 76
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 80
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 84
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 88
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 92
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 96
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 107
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 111
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 117
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 121
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 127
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 131
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 137
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 141
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 150
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 154
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 158
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 162
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 166
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 170
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 174
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 182
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 186
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 194
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 198
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 207
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 211
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 220
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 224
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 233
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 237
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 246
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 250
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 260
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 264
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 272
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 278
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 284
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 290
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 298
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 306
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 310

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

Rule Violation Line
UselessParentheses Useless parentheses around `isXMLLetter(c) || isXMLDigit(c) || c == '.' || ...`. 6365
UselessParentheses Useless parentheses around `isXMLLetter(c) || c == '_'`. 80

jaxen - org/jaxen/saxpath/base/XPathLexer.java

Rule Violation Line
UselessParentheses Useless parentheses around `i - 1`. 883
UselessParentheses Useless parentheses around `i - 1`. 888

jaxen - org/jaxen/util/PrecedingSiblingAxisIterator.java

Rule Violation Line
UselessParentheses Useless parentheses around `this.nextObj != null`. 128

jaxen - org/jaxen/xom/DocumentNavigator.java

Rule Violation Line
UselessParentheses Useless parentheses around `isAttribute(o) ? ((Attribute) o).getLocalName()...`. 116
UselessParentheses Useless parentheses around `isAttribute(o) ? ((Attribute) o).getNamespaceUR...`. 120
UselessParentheses Useless parentheses around `isAttribute(o) ? ((Attribute) o).getQualifiedNa...`. 124
UselessParentheses Useless parentheses around `isAttribute(o) ? ((Attribute) o).getValue() : null`. 128
UselessParentheses Useless parentheses around `isComment(o) ? ((Comment) o).getValue() : null`. 134
UselessParentheses Useless parentheses around `isElement(o) ? ((Element) o).getLocalName() : null`. 138
UselessParentheses Useless parentheses around `isElement(o) ? ((Element) o).getNamespaceURI() ...`. 142
UselessParentheses Useless parentheses around `isElement(o) ? ((Element) o).getQualifiedName()...`. 146
UselessParentheses Useless parentheses around `o instanceof Node ? ((Node) o).getValue() : null`. 150
UselessParentheses Useless parentheses around `o instanceof Text ? ((Text) o).getValue() : null`. 180
UselessParentheses Useless parentheses around `parent != null ? new SingleObjectIterator(paren...`. 260
UselessParentheses Useless parentheses around `o instanceof Node ? ((Node) o).getParent() : null`. 264
UselessParentheses Useless parentheses around `o instanceof ProcessingInstruction ? ((Processi...`. 280
UselessParentheses Useless parentheses around `o instanceof ProcessingInstruction ? ((Processi...`. 284
UselessParentheses Useless parentheses around `"[xmlns:" + prefix + "=\"" + uri + "\", element...`. 355357

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 110

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 8788

jaxen - org/jaxen/VariableContext.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getVariableValue': the method is declared in an interface type 3 102

jaxen - org/jaxen/dom/DocumentNavigator.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 387396
EmptyCatchBlock Avoid empty catch blocks 3 479480
EmptyCatchBlock Avoid empty catch blocks 3 518519
EmptyCatchBlock Avoid empty catch blocks 3 539540
EmptyCatchBlock Avoid empty catch blocks 3 579580
UselessParentheses Useless parentheses around `object instanceof NamespaceNode`. 4 606
UselessParentheses Useless parentheses around `node != null`. 4 911

jaxen - org/jaxen/dom/NamespaceNode.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `equals(parent, ns.getParentNode()) && equals(na...`. 4 514516
UselessParentheses Useless parentheses around `o == null ? 0 : o.hashCode()`. 4 532
UselessParentheses Useless parentheses around `(a == null && b == null) || (a != null && a.equ...`. 4 546547

jaxen - org/jaxen/dom4j/DocumentNavigator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `obj instanceof Text || obj instanceof CDATA`. 4 118120
CollapsibleIfStatements This if statement could be combined with its parent 3 232234

jaxen - org/jaxen/expr/DefaultNameStep.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `!matchesAnyName && iterableAxis.supportsNamedAc...`. 4 158
UselessParentheses Useless parentheses around `uri != null && uri.length() > 0`. 4 380
UselessParentheses Useless parentheses around `uri2.length() == 0`. 4 395
UselessParentheses Useless parentheses around `uri1.length() == 0`. 4 398

jaxen - org/jaxen/expr/DefaultStep.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 146150

jaxen - org/jaxen/expr/DefaultTruthExpr.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `lhs instanceof List && rhs instanceof List`. 4 6466
UselessParentheses Useless parentheses around `lhs instanceof List || rhs instanceof List`. 4 7274
UselessParentheses Useless parentheses around `obj instanceof List`. 4 79
UselessParentheses Useless parentheses around `obj instanceof Boolean`. 4 84
UselessParentheses Useless parentheses around `set == null || set.isEmpty()`. 4 89
UselessParentheses Useless parentheses around `lhs instanceof Boolean || rhs instanceof Boolean`. 4 9597
UselessParentheses Useless parentheses around `lhs instanceof Boolean && rhs instanceof Boolean`. 4 103105
UselessParentheses Useless parentheses around `lhs instanceof Number || rhs instanceof Number`. 4 111113

jaxen - org/jaxen/expr/FilterExpr.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'asBoolean': the method is declared in an interface type 3 69
UnnecessaryModifier Unnecessary modifier 'public' on method 'getExpr': the method is declared in an interface type 3 74

jaxen - org/jaxen/expr/FunctionCallExpr.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrefix': the method is declared in an interface type 3 60
UnnecessaryModifier Unnecessary modifier 'public' on method 'getFunctionName': the method is declared in an interface type 3 67
UnnecessaryModifier Unnecessary modifier 'public' on method 'addParameter': the method is declared in an interface type 3 74
UnnecessaryModifier Unnecessary modifier 'public' on method 'getParameters': the method is declared in an interface type 3 82

jaxen - org/jaxen/expr/LiteralExpr.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLiteral': the method is declared in an interface type 3 60

jaxen - org/jaxen/expr/NameStep.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrefix': the method is declared in an interface type 3 59
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLocalName': the method is declared in an interface type 3 66

jaxen - org/jaxen/expr/NumberExpr.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getNumber': the method is declared in an interface type 3 58

jaxen - org/jaxen/expr/ProcessingInstructionNodeStep.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getName': the method is declared in an interface type 3 51

jaxen - org/jaxen/expr/Step.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getAxis': the method is declared in an interface type 3 94

jaxen - org/jaxen/expr/VariableReferenceExpr.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrefix': the method is declared in an interface type 3 58
UnnecessaryModifier Unnecessary modifier 'public' on method 'getVariableName': the method is declared in an interface type 3 65

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 179181

jaxen - org/jaxen/function/ContainsFunction.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `(str.indexOf(match) >= 0) ? Boolean.TRUE : Bool...`. 4 123126

jaxen - org/jaxen/function/NotFunction.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `BooleanFunction.evaluate(obj, nav).booleanValue...`. 4 108111
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 121124

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 8184

jaxen - org/jaxen/javabean/DocumentNavigator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `obj instanceof Element`. 4 84
UselessParentheses Useless parentheses around `obj instanceof String`. 4 94
EmptyCatchBlock Avoid empty catch blocks 3 222225
EmptyCatchBlock Avoid empty catch blocks 3 226229

jaxen - org/jaxen/jdom/DocumentNavigator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `obj instanceof Text || obj instanceof CDATA`. 4 111113
CollapsibleIfStatements This if statement could be combined with its parent 3 247248
CollapsibleIfStatements This if statement could be combined with its parent 3 269270
CollapsibleIfStatements This if statement could be combined with its parent 3 300303
UselessParentheses Useless parentheses around `namespaceURI == null ? Namespace.NO_NAMESPACE :...`. 4 362363

jaxen - org/jaxen/jdom/XPathNamespace.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `"[xmlns:" + jdomNamespace.getPrefix() + "=\"" +...`. 4 100102

jaxen - org/jaxen/pattern/LocationPathPattern.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 104107

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

Rule Violation Priority Line
UnusedNullCheckInEquals Invoke equals() on the object you've already ensured is not null 3 150

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/XPathHandler.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 68
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 72
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 76
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 80
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 84
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 88
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 92
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 96
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 107
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 111
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 117
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 121
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 127
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 131
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 137
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 141
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 150
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 154
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 158
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 162
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 166
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 170
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 174
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 182
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 186
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 194
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 198
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 207
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 211
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 220
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 224
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 233
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 237
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 246
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 250
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 260
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 264
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 272
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 278
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 284
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 290
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 298
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 306
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.jaxen.saxpath': 'SAXPathException' is already in scope because it is declared in the same package 4 310

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 6365
UselessParentheses Useless parentheses around `isXMLLetter(c) || c == '_'`. 4 80

jaxen - org/jaxen/saxpath/base/XPathLexer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `i - 1`. 4 883
UselessParentheses Useless parentheses around `i - 1`. 4 888

jaxen - org/jaxen/saxpath/helpers/XPathReaderFactory.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8790

jaxen - org/jaxen/util/PrecedingSiblingAxisIterator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `this.nextObj != null`. 4 128

jaxen - org/jaxen/xom/DocumentNavigator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `isAttribute(o) ? ((Attribute) o).getLocalName()...`. 4 116
UselessParentheses Useless parentheses around `isAttribute(o) ? ((Attribute) o).getNamespaceUR...`. 4 120
UselessParentheses Useless parentheses around `isAttribute(o) ? ((Attribute) o).getQualifiedNa...`. 4 124
UselessParentheses Useless parentheses around `isAttribute(o) ? ((Attribute) o).getValue() : null`. 4 128
UselessParentheses Useless parentheses around `isComment(o) ? ((Comment) o).getValue() : null`. 4 134
UselessParentheses Useless parentheses around `isElement(o) ? ((Element) o).getLocalName() : null`. 4 138
UselessParentheses Useless parentheses around `isElement(o) ? ((Element) o).getNamespaceURI() ...`. 4 142
UselessParentheses Useless parentheses around `isElement(o) ? ((Element) o).getQualifiedName()...`. 4 146
UselessParentheses Useless parentheses around `o instanceof Node ? ((Node) o).getValue() : null`. 4 150
UselessParentheses Useless parentheses around `o instanceof Text ? ((Text) o).getValue() : null`. 4 180
UselessParentheses Useless parentheses around `parent != null ? new SingleObjectIterator(paren...`. 4 260
UselessParentheses Useless parentheses around `o instanceof Node ? ((Node) o).getParent() : null`. 4 264
UselessOverridingMethod Overriding method merely calls super 3 269
UselessOverridingMethod Overriding method merely calls super 3 273
UselessParentheses Useless parentheses around `o instanceof ProcessingInstruction ? ((Processi...`. 4 280
UselessParentheses Useless parentheses around `o instanceof ProcessingInstruction ? ((Processi...`. 4 284
EmptyControlStatement Empty if statement 3 293301
UselessParentheses Useless parentheses around `"[xmlns:" + prefix + "=\"" + uri + "\", element...`. 4 355357