PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 2

org/codehaus/plexus/util/SelectorUtils.java
Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 365
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 469
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 623

Priority 3

org/codehaus/plexus/util/Base64.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 298303
CollapsibleIfStatements This if statement could be combined with its parent 338345
org/codehaus/plexus/util/Expand.java
Rule Violation Line
EmptyControlStatement Empty for statement 133136
org/codehaus/plexus/util/FileUtils.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 12961300
org/codehaus/plexus/util/NioFiles.java
Rule Violation Line
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 50
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 53
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 56
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 60
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 63
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 66
org/codehaus/plexus/util/PathTool.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'determineRelativePath': private methods cannot be overridden 329
UnnecessaryModifier Unnecessary modifier 'final' on method 'determineSeparator': private methods cannot be overridden 365
UnnecessaryModifier Unnecessary modifier 'final' on method 'buildRelativePath': private methods cannot be overridden 388
org/codehaus/plexus/util/SelectorUtils.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 653656
org/codehaus/plexus/util/StringUtils.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'sz'. 283
CollapsibleIfStatements This if statement could be combined with its parent 10031005
org/codehaus/plexus/util/SweeperPool.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'debug': private methods cannot be overridden 285
org/codehaus/plexus/util/TypeFormat.java
Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 124
SimplifiedTernary This conditional expression can be simplified with || or && 172
SimplifiedTernary This conditional expression can be simplified with || or && 220
SimplifiedTernary This conditional expression can be simplified with || or && 273
SimplifiedTernary This conditional expression can be simplified with || or && 310
EmptyControlStatement Empty for statement 408
EmptyControlStatement Empty for statement 488
UnnecessaryModifier Unnecessary modifier 'final' on method 'multE': private methods cannot be overridden 757
org/codehaus/plexus/util/cli/StreamConsumer.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'consumeLine': the method is declared in an interface type 73
org/codehaus/plexus/util/cli/StreamPumper.java
Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 119
org/codehaus/plexus/util/introspection/ClassMap.java
Rule Violation Line
UnusedLocalVariable Avoid unused local variables such as 'methodKey'. 118
org/codehaus/plexus/util/io/CachingOutputStream.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'path'. 34

Priority 4

org/codehaus/plexus/util/Base64.java
Rule Violation Line
UselessParentheses Useless parentheses. 281
UselessParentheses Useless parentheses. 282
UselessParentheses Useless parentheses. 283
UselessParentheses Useless parentheses. 315
UselessParentheses Useless parentheses. 327
UselessParentheses Useless parentheses. 328
org/codehaus/plexus/util/CollectionUtils.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CollectionUtils': 'subtract' is already in scope 73
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CollectionUtils': 'intersection' is already in scope 74
org/codehaus/plexus/util/DirectoryWalker.java
Rule Violation Line
UselessParentheses Useless parentheses. 86
org/codehaus/plexus/util/ExceptionUtils.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ExceptionUtils': 'getCause' is already in scope 292
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ExceptionUtils': 'getThrowables' is already in scope 346
org/codehaus/plexus/util/FastMap.java
Rule Violation Line
UselessParentheses Useless parentheses. 578
UselessParentheses Useless parentheses. 939
org/codehaus/plexus/util/FileUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 201
UselessParentheses Useless parentheses. 212
UselessParentheses Useless parentheses. 1148
UnnecessaryFullyQualifiedName Unnecessary qualifier 'FileUtils': 'FS' is already in scope because it is declared in an enclosing type 1590
UnnecessaryFullyQualifiedName Unnecessary qualifier 'FileUtils': 'FS' is already in scope because it is declared in an enclosing type 1602
org/codehaus/plexus/util/Os.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Os': 'isFamily' is already in scope 344
UselessParentheses Useless parentheses. 372
org/codehaus/plexus/util/PathTool.java
Rule Violation Line
UselessParentheses Useless parentheses. 293
org/codehaus/plexus/util/SelectorUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 351
UselessParentheses Useless parentheses. 352
UselessParentheses Useless parentheses. 455
UselessParentheses Useless parentheses. 456
UselessParentheses Useless parentheses. 610
UselessParentheses Useless parentheses. 611
org/codehaus/plexus/util/StringUtils.java
Rule Violation Line
UselessParentheses Useless parentheses. 111
UselessParentheses Useless parentheses. 125
UselessParentheses Useless parentheses. 157
UselessParentheses Useless parentheses. 171
UselessParentheses Useless parentheses. 171
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringUtils': 'isBlank' is already in scope 222
UselessParentheses Useless parentheses. 263
UselessParentheses Useless parentheses. 616
UselessParentheses Useless parentheses. 1659
UselessParentheses Useless parentheses. 1933
org/codehaus/plexus/util/TypeFormat.java
Rule Violation Line
UselessParentheses Useless parentheses. 126
UselessParentheses Useless parentheses. 174
UselessParentheses Useless parentheses. 222
UselessParentheses Useless parentheses. 294
UselessParentheses Useless parentheses. 316
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'IllegalArgumentException' is already in scope because it is declared in java.lang 628
org/codehaus/plexus/util/cli/CommandLineUtils.java
Rule Violation Line
DontCallThreadRun Dont call Thread.run() explicitly, use Thread.start() 244

Files

org/codehaus/plexus/util/Base64.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 281
UselessParentheses Useless parentheses. 4 282
UselessParentheses Useless parentheses. 4 283
CollapsibleIfStatements This if statement could be combined with its parent 3 298303
UselessParentheses Useless parentheses. 4 315
UselessParentheses Useless parentheses. 4 327
UselessParentheses Useless parentheses. 4 328
CollapsibleIfStatements This if statement could be combined with its parent 3 338345

org/codehaus/plexus/util/CollectionUtils.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CollectionUtils': 'subtract' is already in scope 4 73
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CollectionUtils': 'intersection' is already in scope 4 74

org/codehaus/plexus/util/DirectoryWalker.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 86

org/codehaus/plexus/util/ExceptionUtils.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ExceptionUtils': 'getCause' is already in scope 4 292
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ExceptionUtils': 'getThrowables' is already in scope 4 346

org/codehaus/plexus/util/Expand.java

Rule Violation Priority Line
EmptyControlStatement Empty for statement 3 133136

org/codehaus/plexus/util/FastMap.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 578
UselessParentheses Useless parentheses. 4 939

org/codehaus/plexus/util/FileUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 201
UselessParentheses Useless parentheses. 4 212
UselessParentheses Useless parentheses. 4 1148
CollapsibleIfStatements This if statement could be combined with its parent 3 12961300
UnnecessaryFullyQualifiedName Unnecessary qualifier 'FileUtils': 'FS' is already in scope because it is declared in an enclosing type 4 1590
UnnecessaryFullyQualifiedName Unnecessary qualifier 'FileUtils': 'FS' is already in scope because it is declared in an enclosing type 4 1602

org/codehaus/plexus/util/NioFiles.java

Rule Violation Priority Line
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 50
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 53
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 56
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 60
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 63
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 66

org/codehaus/plexus/util/Os.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Os': 'isFamily' is already in scope 4 344
UselessParentheses Useless parentheses. 4 372

org/codehaus/plexus/util/PathTool.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 293
UnnecessaryModifier Unnecessary modifier 'final' on method 'determineRelativePath': private methods cannot be overridden 3 329
UnnecessaryModifier Unnecessary modifier 'final' on method 'determineSeparator': private methods cannot be overridden 3 365
UnnecessaryModifier Unnecessary modifier 'final' on method 'buildRelativePath': private methods cannot be overridden 3 388

org/codehaus/plexus/util/SelectorUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 351
UselessParentheses Useless parentheses. 4 352
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 365
UselessParentheses Useless parentheses. 4 455
UselessParentheses Useless parentheses. 4 456
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 469
UselessParentheses Useless parentheses. 4 610
UselessParentheses Useless parentheses. 4 611
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 623
CollapsibleIfStatements This if statement could be combined with its parent 3 653656

org/codehaus/plexus/util/StringUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 111
UselessParentheses Useless parentheses. 4 125
UselessParentheses Useless parentheses. 4 157
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 171
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringUtils': 'isBlank' is already in scope 4 222
UselessParentheses Useless parentheses. 4 263
UnusedLocalVariable Avoid unused local variables such as 'sz'. 3 283
UselessParentheses Useless parentheses. 4 616
CollapsibleIfStatements This if statement could be combined with its parent 3 10031005
UselessParentheses Useless parentheses. 4 1659
UselessParentheses Useless parentheses. 4 1933

org/codehaus/plexus/util/SweeperPool.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'debug': private methods cannot be overridden 3 285

org/codehaus/plexus/util/TypeFormat.java

Rule Violation Priority Line
SimplifiedTernary This conditional expression can be simplified with || or && 3 124
UselessParentheses Useless parentheses. 4 126
SimplifiedTernary This conditional expression can be simplified with || or && 3 172
UselessParentheses Useless parentheses. 4 174
SimplifiedTernary This conditional expression can be simplified with || or && 3 220
UselessParentheses Useless parentheses. 4 222
SimplifiedTernary This conditional expression can be simplified with || or && 3 273
UselessParentheses Useless parentheses. 4 294
SimplifiedTernary This conditional expression can be simplified with || or && 3 310
UselessParentheses Useless parentheses. 4 316
EmptyControlStatement Empty for statement 3 408
EmptyControlStatement Empty for statement 3 488
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'IllegalArgumentException' is already in scope because it is declared in java.lang 4 628
UnnecessaryModifier Unnecessary modifier 'final' on method 'multE': private methods cannot be overridden 3 757

org/codehaus/plexus/util/cli/CommandLineUtils.java

Rule Violation Priority Line
DontCallThreadRun Dont call Thread.run() explicitly, use Thread.start() 4 244

org/codehaus/plexus/util/cli/StreamConsumer.java

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

org/codehaus/plexus/util/cli/StreamPumper.java

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

org/codehaus/plexus/util/introspection/ClassMap.java

Rule Violation Priority Line
UnusedLocalVariable Avoid unused local variables such as 'methodKey'. 3 118

org/codehaus/plexus/util/io/CachingOutputStream.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'path'. 3 34