PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 3

jaxen - org/jaxen/dom/DocumentNavigator.java

Rule Violation Line
EmptyControlStatement Empty if statement 387–396
EmptyCatchBlock Avoid empty catch blocks 479–480
EmptyCatchBlock Avoid empty catch blocks 518–519
EmptyCatchBlock Avoid empty catch blocks 539–540
EmptyCatchBlock Avoid empty catch blocks 579–580

jaxen - org/jaxen/dom4j/DocumentNavigator.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 232–234

jaxen - org/jaxen/expr/DefaultStep.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 146–150

jaxen - org/jaxen/javabean/DocumentNavigator.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 222–225
EmptyCatchBlock Avoid empty catch blocks 226–229

jaxen - org/jaxen/jdom/DocumentNavigator.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 248–249
CollapsibleIfStatements This if statement could be combined with its parent 270–271
CollapsibleIfStatements This if statement could be combined with its parent 301–304

jaxen - org/jaxen/pattern/LocationPathPattern.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 104–107

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 87–90

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 293–301

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 109

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...`. 87–88

jaxen - org/jaxen/dom/DocumentNavigator.java

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

jaxen - org/jaxen/dom/NamespaceNode.java

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

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

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`. 58–60
UselessParentheses Useless parentheses around `lhs instanceof List || rhs instanceof List`. 66–68
UselessParentheses Useless parentheses around `obj instanceof List`. 73
UselessParentheses Useless parentheses around `obj instanceof Boolean`. 78
UselessParentheses Useless parentheses around `set == null || set.isEmpty()`. 83
UselessParentheses Useless parentheses around `lhs instanceof Boolean || rhs instanceof Boolean`. 89–91
UselessParentheses Useless parentheses around `lhs instanceof Boolean && rhs instanceof Boolean`. 97–99
UselessParentheses Useless parentheses around `lhs instanceof Number || rhs instanceof Number`. 105–107

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

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
UnnecessaryImport Unused import 'java.util.List' 46
UselessParentheses Useless parentheses around `obj instanceof Text || obj instanceof CDATA`. 112–114
UselessParentheses Useless parentheses around `namespaceURI == null ? Namespace.NO_NAMESPACE :...`. 363–364

jaxen - org/jaxen/jdom/XPathNamespace.java

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

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/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 == '.' || ...`. 63–65
UselessParentheses Useless parentheses around `isXMLLetter(c) || c == '_'`. 80

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

Rule Violation Line
UselessParentheses Useless parentheses around `i - 1`. 892
UselessParentheses Useless parentheses around `i - 1`. 897

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...`. 355–357

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 109

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

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 387–396
EmptyCatchBlock Avoid empty catch blocks 3 479–480
EmptyCatchBlock Avoid empty catch blocks 3 518–519
EmptyCatchBlock Avoid empty catch blocks 3 539–540
EmptyCatchBlock Avoid empty catch blocks 3 579–580
UselessParentheses Useless parentheses around `object instanceof NamespaceNode`. 4 606
UselessParentheses Useless parentheses around `node != null`. 4 919

jaxen - org/jaxen/dom/NamespaceNode.java

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

jaxen - org/jaxen/dom4j/DocumentNavigator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `obj instanceof Text || obj instanceof CDATA`. 4 118–120
CollapsibleIfStatements This if statement could be combined with its parent 3 232–234

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 146–150

jaxen - org/jaxen/expr/DefaultTruthExpr.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `lhs instanceof List && rhs instanceof List`. 4 58–60
UselessParentheses Useless parentheses around `lhs instanceof List || rhs instanceof List`. 4 66–68
UselessParentheses Useless parentheses around `obj instanceof List`. 4 73
UselessParentheses Useless parentheses around `obj instanceof Boolean`. 4 78
UselessParentheses Useless parentheses around `set == null || set.isEmpty()`. 4 83
UselessParentheses Useless parentheses around `lhs instanceof Boolean || rhs instanceof Boolean`. 4 89–91
UselessParentheses Useless parentheses around `lhs instanceof Boolean && rhs instanceof Boolean`. 4 97–99
UselessParentheses Useless parentheses around `lhs instanceof Number || rhs instanceof Number`. 4 105–107

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

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 222–225
EmptyCatchBlock Avoid empty catch blocks 3 226–229

jaxen - org/jaxen/jdom/DocumentNavigator.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.List' 4 46
UselessParentheses Useless parentheses around `obj instanceof Text || obj instanceof CDATA`. 4 112–114
CollapsibleIfStatements This if statement could be combined with its parent 3 248–249
CollapsibleIfStatements This if statement could be combined with its parent 3 270–271
CollapsibleIfStatements This if statement could be combined with its parent 3 301–304
UselessParentheses Useless parentheses around `namespaceURI == null ? Namespace.NO_NAMESPACE :...`. 4 363–364

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

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 104–107

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/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

Rule Violation Priority Line
UselessParentheses Useless parentheses around `i - 1`. 4 892
UselessParentheses Useless parentheses around `i - 1`. 4 897

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 87–90

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 293–301
UselessParentheses Useless parentheses around `"[xmlns:" + prefix + "=\"" + uri + "\", element...`. 4 355–357