PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 3

org/eclipse/aether/util/graph/manager/DefaultDependencyManager.java

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

org/eclipse/aether/util/graph/transformer/ConflictResolver.java

Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 767

org/eclipse/aether/util/graph/transformer/NearestVersionSelector.java

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

org/eclipse/aether/util/graph/visitor/AbstractDepthFirstNodeListGenerator.java

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

org/eclipse/aether/util/repository/DefaultMirrorSelector.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 196

org/eclipse/aether/util/version/GenericVersionRange.java

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

Priority 4

org/eclipse/aether/util/filter/AbstractPatternDependencyFilter.java

Rule Violation Line
UselessParentheses Useless parentheses around `patternTokens.length <= tokens.length`. 118
UselessParentheses Useless parentheses around `token.contains(contains)`. 138

org/eclipse/aether/util/filter/ExclusionsDependencyFilter.java

Rule Violation Line
UselessParentheses Useless parentheses around `excludes.contains(id)`. 68

org/eclipse/aether/util/graph/manager/ClassicDependencyManager.java

Rule Violation Line
UselessParentheses Useless parentheses around `JavaScopes.SYSTEM.equals(scope)`. 179

org/eclipse/aether/util/graph/manager/TransitiveDependencyManager.java

Rule Violation Line
UselessParentheses Useless parentheses around `JavaScopes.SYSTEM.equals(scope)`. 175

org/eclipse/aether/util/version/GenericVersionScheme.java

Rule Violation Line
UselessParentheses Useless parentheses around `(compare < 0) ? "<" : ">"`. 155

Files

org/eclipse/aether/util/filter/AbstractPatternDependencyFilter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `patternTokens.length <= tokens.length`. 4 118
UselessParentheses Useless parentheses around `token.contains(contains)`. 4 138

org/eclipse/aether/util/filter/ExclusionsDependencyFilter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `excludes.contains(id)`. 4 68

org/eclipse/aether/util/graph/manager/ClassicDependencyManager.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `JavaScopes.SYSTEM.equals(scope)`. 4 179

org/eclipse/aether/util/graph/manager/DefaultDependencyManager.java

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

org/eclipse/aether/util/graph/manager/TransitiveDependencyManager.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `JavaScopes.SYSTEM.equals(scope)`. 4 175

org/eclipse/aether/util/graph/transformer/ConflictResolver.java

Rule Violation Priority Line
SimplifiedTernary This conditional expression can be simplified with || or && 3 767

org/eclipse/aether/util/graph/transformer/NearestVersionSelector.java

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

org/eclipse/aether/util/graph/visitor/AbstractDepthFirstNodeListGenerator.java

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

org/eclipse/aether/util/repository/DefaultMirrorSelector.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 3 196

org/eclipse/aether/util/version/GenericVersionRange.java

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

org/eclipse/aether/util/version/GenericVersionScheme.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `(compare < 0) ? "<" : ">"`. 4 155