PMD Results
The following document contains the results of PMD 6.46.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. | 420 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 549 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 733 |
org/codehaus/plexus/util/xml/pull/MXSerializer.java
Rule | Violation | Line |
---|---|---|
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 650 |
Priority 3
org/codehaus/plexus/util/Base64.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 327–334 |
CollapsibleIfStatements | These nested if statements could be combined | 373–377 |
org/codehaus/plexus/util/CollectionUtils.java
Rule | Violation | Line |
---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 237–239 |
org/codehaus/plexus/util/Expand.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty for statement | 145–148 |
org/codehaus/plexus/util/FileUtils.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 1547–1552 |
org/codehaus/plexus/util/NioFiles.java
Rule | Violation | Line |
---|---|---|
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 | 64 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 69 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 73 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 77 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 82 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 86 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 90 |
org/codehaus/plexus/util/PathTool.java
Rule | Violation | Line |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'final' on method 'determineRelativePath': private methods cannot be overridden | 357–388 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'determineSeparator': private methods cannot be overridden | 397–403 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'buildRelativePath': private methods cannot be overridden | 424–496 |
org/codehaus/plexus/util/SelectorUtils.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 769–773 |
org/codehaus/plexus/util/StringUtils.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'sz'. | 307 |
CollapsibleIfStatements | These nested if statements could be combined | 1123–1126 |
org/codehaus/plexus/util/SweeperPool.java
Rule | Violation | Line |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'final' on method 'debug': private methods cannot be overridden | 333–339 |
org/codehaus/plexus/util/TypeFormat.java
Rule | Violation | Line |
---|---|---|
SimplifiedTernary | Ternary operators that can be simplified with || or && | 137 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 193 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 249 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 314 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 366 |
EmptyControlStatement | Empty for statement | 480–482 |
EmptyControlStatement | Empty for statement | 580–582 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'multE': private methods cannot be overridden | 907–937 |
org/codehaus/plexus/util/cli/ShutdownHookUtils.java
Rule | Violation | Line |
---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 36–38 |
EmptyCatchBlock | Avoid empty catch blocks | 39–41 |
EmptyCatchBlock | Avoid empty catch blocks | 51–53 |
EmptyCatchBlock | Avoid empty catch blocks | 54–56 |
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 | 75–76 |
org/codehaus/plexus/util/cli/StreamPumper.java
Rule | Violation | Line |
---|---|---|
SimplifiedTernary | Ternary operators that can be simplified with || or && | 126 |
org/codehaus/plexus/util/introspection/ClassMap.java
Rule | Violation | Line |
---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'methodKey'. | 135 |
org/codehaus/plexus/util/io/CachingOutputStream.java
Rule | Violation | Line |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'path'. | 38 |
org/codehaus/plexus/util/xml/XmlReader.java
Rule | Violation | Line |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 379–392 |
UnusedFormalParameter | Avoid unused method parameters such as 'lenient'. | 440 |
org/codehaus/plexus/util/xml/pull/MXParser.java
Rule | Violation | Line |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'final' on method 'fastHash': private methods cannot be overridden | 321–341 |
CollapsibleIfStatements | These nested if statements could be combined | 1454–1458 |
UnusedLocalVariable | Avoid unused local variables such as 'name'. | 2230 |
CollapsibleIfStatements | These nested if statements could be combined | 2442–2444 |
UnusedLocalVariable | Avoid unused local variables such as 'prefix'. | 2463 |
CollapsibleIfStatements | These nested if statements could be combined | 3179–3204 |
CollapsibleIfStatements | These nested if statements could be combined | 3694–3709 |
CollapsibleIfStatements | These nested if statements could be combined | 3696–3708 |
CollapsibleIfStatements | These nested if statements could be combined | 3805–3808 |
org/codehaus/plexus/util/xml/pull/MXSerializer.java
Rule | Violation | Line |
---|---|---|
EmptyControlStatement | Empty if statement | 1203–1229 |
EmptyControlStatement | Empty if statement | 1302–1330 |
UnusedLocalVariable | Avoid unused local variables such as 'ch'. | 1352 |
Priority 4
org/codehaus/plexus/util/Base64.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 282 |
UselessParentheses | Useless parentheses. | 332 |
org/codehaus/plexus/util/DirectoryWalker.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 91 |
org/codehaus/plexus/util/ExceptionUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 469 |
org/codehaus/plexus/util/FastMap.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 117 |
UselessParentheses | Useless parentheses. | 381 |
UselessParentheses | Useless parentheses. | 381 |
UselessParentheses | Useless parentheses. | 666 |
UselessParentheses | Useless parentheses. | 666 |
UselessParentheses | Useless parentheses. | 789 |
UselessParentheses | Useless parentheses. | 790 |
UselessParentheses | Useless parentheses. | 791 |
UselessParentheses | Useless parentheses. | 1079 |
org/codehaus/plexus/util/FileUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 214 |
UselessParentheses | Useless parentheses. | 226 |
UselessParentheses | Useless parentheses. | 250 |
UselessParentheses | Useless parentheses. | 250 |
UselessParentheses | Useless parentheses. | 250 |
UselessParentheses | Useless parentheses. | 1316 |
UselessParentheses | Useless parentheses. | 1359 |
UselessParentheses | Useless parentheses. | 2299 |
org/codehaus/plexus/util/InterpolationFilterReader.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 256 |
UselessParentheses | Useless parentheses. | 257 |
org/codehaus/plexus/util/Os.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 417 |
org/codehaus/plexus/util/PathTool.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 318 |
UselessParentheses | Useless parentheses. | 319 |
UselessParentheses | Useless parentheses. | 326 |
UselessParentheses | Useless parentheses. | 327 |
org/codehaus/plexus/util/ReaderFactory.java
Rule | Violation | Line |
---|---|---|
UnnecessaryImport | Unused import 'java.io.FileNotFoundException' | 20 |
org/codehaus/plexus/util/SelectorUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 404 |
UselessParentheses | Useless parentheses. | 405 |
UselessParentheses | Useless parentheses. | 533 |
UselessParentheses | Useless parentheses. | 534 |
UselessParentheses | Useless parentheses. | 718 |
UselessParentheses | Useless parentheses. | 719 |
org/codehaus/plexus/util/StringUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 115 |
UselessParentheses | Useless parentheses. | 130 |
UselessParentheses | Useless parentheses. | 168 |
UselessParentheses | Useless parentheses. | 168 |
UselessParentheses | Useless parentheses. | 168 |
UselessParentheses | Useless parentheses. | 186 |
UselessParentheses | Useless parentheses. | 186 |
UselessParentheses | Useless parentheses. | 186 |
UselessParentheses | Useless parentheses. | 285 |
UselessParentheses | Useless parentheses. | 303 |
UselessParentheses | Useless parentheses. | 303 |
UselessParentheses | Useless parentheses. | 345 |
UselessParentheses | Useless parentheses. | 345 |
UselessParentheses | Useless parentheses. | 480 |
UselessParentheses | Useless parentheses. | 480 |
UselessParentheses | Useless parentheses. | 510 |
UselessParentheses | Useless parentheses. | 510 |
UselessParentheses | Useless parentheses. | 538 |
UselessParentheses | Useless parentheses. | 538 |
UselessParentheses | Useless parentheses. | 538 |
UselessParentheses | Useless parentheses. | 538 |
UselessParentheses | Useless parentheses. | 622 |
UselessParentheses | Useless parentheses. | 622 |
UselessParentheses | Useless parentheses. | 633 |
UselessParentheses | Useless parentheses. | 633 |
UselessParentheses | Useless parentheses. | 691 |
UselessParentheses | Useless parentheses. | 851 |
UselessParentheses | Useless parentheses. | 851 |
UselessParentheses | Useless parentheses. | 851 |
UselessParentheses | Useless parentheses. | 851 |
UselessParentheses | Useless parentheses. | 1422 |
UselessParentheses | Useless parentheses. | 1422 |
UselessParentheses | Useless parentheses. | 1457 |
UselessParentheses | Useless parentheses. | 1464 |
UselessParentheses | Useless parentheses. | 1464 |
UselessParentheses | Useless parentheses. | 1497 |
UselessParentheses | Useless parentheses. | 1504 |
UselessParentheses | Useless parentheses. | 1504 |
UselessParentheses | Useless parentheses. | 1886 |
UselessParentheses | Useless parentheses. | 1914 |
UselessParentheses | Useless parentheses. | 1914 |
UselessParentheses | Useless parentheses. | 1970 |
UselessParentheses | Useless parentheses. | 1970 |
UselessParentheses | Useless parentheses. | 2026 |
UselessParentheses | Useless parentheses. | 2026 |
UselessParentheses | Useless parentheses. | 2237 |
UselessParentheses | Useless parentheses. | 2237 |
UselessParentheses | Useless parentheses. | 2244 |
UselessParentheses | Useless parentheses. | 2244 |
UselessParentheses | Useless parentheses. | 2322 |
org/codehaus/plexus/util/SweeperPool.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 96 |
UselessParentheses | Useless parentheses. | 120 |
UselessParentheses | Useless parentheses. | 120 |
UselessParentheses | Useless parentheses. | 120 |
UselessParentheses | Useless parentheses. | 207 |
UselessParentheses | Useless parentheses. | 207 |
UselessParentheses | Useless parentheses. | 207 |
UselessParentheses | Useless parentheses. | 208 |
UselessParentheses | Useless parentheses. | 208 |
UselessParentheses | Useless parentheses. | 208 |
org/codehaus/plexus/util/TypeFormat.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 104 |
UselessParentheses | Useless parentheses. | 139 |
UselessParentheses | Useless parentheses. | 142 |
UselessParentheses | Useless parentheses. | 142 |
UselessParentheses | Useless parentheses. | 147 |
UselessParentheses | Useless parentheses. | 147 |
UselessParentheses | Useless parentheses. | 147 |
UselessParentheses | Useless parentheses. | 195 |
UselessParentheses | Useless parentheses. | 198 |
UselessParentheses | Useless parentheses. | 198 |
UselessParentheses | Useless parentheses. | 203 |
UselessParentheses | Useless parentheses. | 203 |
UselessParentheses | Useless parentheses. | 203 |
UselessParentheses | Useless parentheses. | 251 |
UselessParentheses | Useless parentheses. | 254 |
UselessParentheses | Useless parentheses. | 254 |
UselessParentheses | Useless parentheses. | 259 |
UselessParentheses | Useless parentheses. | 259 |
UselessParentheses | Useless parentheses. | 259 |
UselessParentheses | Useless parentheses. | 288 |
UselessParentheses | Useless parentheses. | 288 |
UselessParentheses | Useless parentheses. | 315 |
UselessParentheses | Useless parentheses. | 315 |
UselessParentheses | Useless parentheses. | 318 |
UselessParentheses | Useless parentheses. | 318 |
UselessParentheses | Useless parentheses. | 335 |
UselessParentheses | Useless parentheses. | 335 |
UselessParentheses | Useless parentheses. | 339 |
UselessParentheses | Useless parentheses. | 339 |
UselessParentheses | Useless parentheses. | 343 |
UselessParentheses | Useless parentheses. | 343 |
UselessParentheses | Useless parentheses. | 367 |
UselessParentheses | Useless parentheses. | 367 |
UselessParentheses | Useless parentheses. | 372 |
UselessParentheses | Useless parentheses. | 372 |
UselessParentheses | Useless parentheses. | 480 |
UselessParentheses | Useless parentheses. | 480 |
UselessParentheses | Useless parentheses. | 580 |
UselessParentheses | Useless parentheses. | 580 |
UselessParentheses | Useless parentheses. | 743 |
UselessParentheses | Useless parentheses. | 743 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.lang.IllegalArgumentException' due to existing implicit import 'java.lang.*' | 750 |
UselessParentheses | Useless parentheses. | 818 |
UselessParentheses | Useless parentheses. | 840 |
UselessParentheses | Useless parentheses. | 840 |
org/codehaus/plexus/util/cli/CommandLineUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 190 |
DontCallThreadRun | Dont call Thread.run() explicitly, use Thread.start() | 274 |
UselessParentheses | Useless parentheses. | 415 |
UselessParentheses | Useless parentheses. | 415 |
UselessParentheses | Useless parentheses. | 485 |
UselessParentheses | Useless parentheses. | 485 |
UselessParentheses | Useless parentheses. | 606 |
UselessParentheses | Useless parentheses. | 606 |
org/codehaus/plexus/util/cli/Commandline.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 155 |
UselessParentheses | Useless parentheses. | 155 |
UselessParentheses | Useless parentheses. | 192 |
UselessParentheses | Useless parentheses. | 192 |
UselessParentheses | Useless parentheses. | 252 |
org/codehaus/plexus/util/cli/EnhancedStringTokenizer.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 58 |
org/codehaus/plexus/util/cli/shell/BourneShell.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 72 |
UselessParentheses | Useless parentheses. | 91 |
org/codehaus/plexus/util/cli/shell/Shell.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 116 |
UselessParentheses | Useless parentheses. | 334 |
UselessParentheses | Useless parentheses. | 334 |
org/codehaus/plexus/util/dag/CycleDetector.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 109 |
org/codehaus/plexus/util/dag/TopologicalSorter.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 77 |
org/codehaus/plexus/util/introspection/MethodMap.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 403 |
org/codehaus/plexus/util/io/CachingOutputStream.java
Rule | Violation | Line |
---|---|---|
UnnecessaryImport | Unused import 'java.nio.file.Files' | 25 |
UnnecessaryImport | Unused import 'java.nio.file.attribute.FileTime' | 28 |
UnnecessaryImport | Unused import 'java.time.Instant' | 29 |
org/codehaus/plexus/util/io/CachingWriter.java
Rule | Violation | Line |
---|---|---|
UnnecessaryImport | Unused import 'java.io.StringWriter' | 22 |
UnnecessaryImport | Unused import 'java.nio.file.Files' | 24 |
UnnecessaryImport | Unused import 'java.util.Arrays' | 26 |
org/codehaus/plexus/util/xml/XmlReader.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 609 |
UselessParentheses | Useless parentheses. | 750 |
UselessParentheses | Useless parentheses. | 757 |
org/codehaus/plexus/util/xml/Xpp3DomUtils.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 280 |
UselessParentheses | Useless parentheses. | 285 |
org/codehaus/plexus/util/xml/pull/MXParser.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 84 |
UselessParentheses | Useless parentheses. | 1252 |
UselessParentheses | Useless parentheses. | 1253 |
UselessParentheses | Useless parentheses. | 2345–2346 |
UselessParentheses | Useless parentheses. | 2373–2375 |
UselessParentheses | Useless parentheses. | 2374–2375 |
UselessParentheses | Useless parentheses. | 2650–2651 |
UselessParentheses | Useless parentheses. | 2650 |
UselessParentheses | Useless parentheses. | 2718 |
UselessParentheses | Useless parentheses. | 2936 |
UselessParentheses | Useless parentheses. | 2937 |
UselessParentheses | Useless parentheses. | 2937 |
UselessParentheses | Useless parentheses. | 3354 |
UselessParentheses | Useless parentheses. | 4148 |
org/codehaus/plexus/util/xml/pull/MXSerializer.java
Rule | Violation | Line |
---|---|---|
UselessParentheses | Useless parentheses. | 348 |
UselessParentheses | Useless parentheses. | 349 |
UselessParentheses | Useless parentheses. | 631 |
UselessParentheses | Useless parentheses. | 698 |
UselessParentheses | Useless parentheses. | 703 |
UselessParentheses | Useless parentheses. | 925 |
UselessParentheses | Useless parentheses. | 925 |
Files
org/codehaus/plexus/util/Base64.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 282 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 327–334 |
UselessParentheses | Useless parentheses. | 4 | 332 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 373–377 |
org/codehaus/plexus/util/CollectionUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 3 | 237–239 |
org/codehaus/plexus/util/DirectoryWalker.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 91 |
org/codehaus/plexus/util/ExceptionUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 469 |
org/codehaus/plexus/util/Expand.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyControlStatement | Empty for statement | 3 | 145–148 |
org/codehaus/plexus/util/FastMap.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 117 |
UselessParentheses | Useless parentheses. | 4 | 381 |
UselessParentheses | Useless parentheses. | 4 | 381 |
UselessParentheses | Useless parentheses. | 4 | 666 |
UselessParentheses | Useless parentheses. | 4 | 666 |
UselessParentheses | Useless parentheses. | 4 | 789 |
UselessParentheses | Useless parentheses. | 4 | 790 |
UselessParentheses | Useless parentheses. | 4 | 791 |
UselessParentheses | Useless parentheses. | 4 | 1079 |
org/codehaus/plexus/util/FileUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 214 |
UselessParentheses | Useless parentheses. | 4 | 226 |
UselessParentheses | Useless parentheses. | 4 | 250 |
UselessParentheses | Useless parentheses. | 4 | 250 |
UselessParentheses | Useless parentheses. | 4 | 250 |
UselessParentheses | Useless parentheses. | 4 | 1316 |
UselessParentheses | Useless parentheses. | 4 | 1359 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1547–1552 |
UselessParentheses | Useless parentheses. | 4 | 2299 |
org/codehaus/plexus/util/InterpolationFilterReader.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 256 |
UselessParentheses | Useless parentheses. | 4 | 257 |
org/codehaus/plexus/util/NioFiles.java
Rule | Violation | Priority | Line |
---|---|---|---|
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 | 64 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 3 | 69 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 3 | 73 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 3 | 77 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 3 | 82 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 3 | 86 |
AvoidUsingOctalValues | Do not start a literal by 0 unless its an octal value | 3 | 90 |
org/codehaus/plexus/util/Os.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 417 |
org/codehaus/plexus/util/PathTool.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 318 |
UselessParentheses | Useless parentheses. | 4 | 319 |
UselessParentheses | Useless parentheses. | 4 | 326 |
UselessParentheses | Useless parentheses. | 4 | 327 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'determineRelativePath': private methods cannot be overridden | 3 | 357–388 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'determineSeparator': private methods cannot be overridden | 3 | 397–403 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'buildRelativePath': private methods cannot be overridden | 3 | 424–496 |
org/codehaus/plexus/util/ReaderFactory.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryImport | Unused import 'java.io.FileNotFoundException' | 4 | 20 |
org/codehaus/plexus/util/SelectorUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 404 |
UselessParentheses | Useless parentheses. | 4 | 405 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 420 |
UselessParentheses | Useless parentheses. | 4 | 533 |
UselessParentheses | Useless parentheses. | 4 | 534 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 549 |
UselessParentheses | Useless parentheses. | 4 | 718 |
UselessParentheses | Useless parentheses. | 4 | 719 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 733 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 769–773 |
org/codehaus/plexus/util/StringUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 115 |
UselessParentheses | Useless parentheses. | 4 | 130 |
UselessParentheses | Useless parentheses. | 4 | 168 |
UselessParentheses | Useless parentheses. | 4 | 168 |
UselessParentheses | Useless parentheses. | 4 | 168 |
UselessParentheses | Useless parentheses. | 4 | 186 |
UselessParentheses | Useless parentheses. | 4 | 186 |
UselessParentheses | Useless parentheses. | 4 | 186 |
UselessParentheses | Useless parentheses. | 4 | 285 |
UselessParentheses | Useless parentheses. | 4 | 303 |
UselessParentheses | Useless parentheses. | 4 | 303 |
UnusedLocalVariable | Avoid unused local variables such as 'sz'. | 3 | 307 |
UselessParentheses | Useless parentheses. | 4 | 345 |
UselessParentheses | Useless parentheses. | 4 | 345 |
UselessParentheses | Useless parentheses. | 4 | 480 |
UselessParentheses | Useless parentheses. | 4 | 480 |
UselessParentheses | Useless parentheses. | 4 | 510 |
UselessParentheses | Useless parentheses. | 4 | 510 |
UselessParentheses | Useless parentheses. | 4 | 538 |
UselessParentheses | Useless parentheses. | 4 | 538 |
UselessParentheses | Useless parentheses. | 4 | 538 |
UselessParentheses | Useless parentheses. | 4 | 538 |
UselessParentheses | Useless parentheses. | 4 | 622 |
UselessParentheses | Useless parentheses. | 4 | 622 |
UselessParentheses | Useless parentheses. | 4 | 633 |
UselessParentheses | Useless parentheses. | 4 | 633 |
UselessParentheses | Useless parentheses. | 4 | 691 |
UselessParentheses | Useless parentheses. | 4 | 851 |
UselessParentheses | Useless parentheses. | 4 | 851 |
UselessParentheses | Useless parentheses. | 4 | 851 |
UselessParentheses | Useless parentheses. | 4 | 851 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1123–1126 |
UselessParentheses | Useless parentheses. | 4 | 1422 |
UselessParentheses | Useless parentheses. | 4 | 1422 |
UselessParentheses | Useless parentheses. | 4 | 1457 |
UselessParentheses | Useless parentheses. | 4 | 1464 |
UselessParentheses | Useless parentheses. | 4 | 1464 |
UselessParentheses | Useless parentheses. | 4 | 1497 |
UselessParentheses | Useless parentheses. | 4 | 1504 |
UselessParentheses | Useless parentheses. | 4 | 1504 |
UselessParentheses | Useless parentheses. | 4 | 1886 |
UselessParentheses | Useless parentheses. | 4 | 1914 |
UselessParentheses | Useless parentheses. | 4 | 1914 |
UselessParentheses | Useless parentheses. | 4 | 1970 |
UselessParentheses | Useless parentheses. | 4 | 1970 |
UselessParentheses | Useless parentheses. | 4 | 2026 |
UselessParentheses | Useless parentheses. | 4 | 2026 |
UselessParentheses | Useless parentheses. | 4 | 2237 |
UselessParentheses | Useless parentheses. | 4 | 2237 |
UselessParentheses | Useless parentheses. | 4 | 2244 |
UselessParentheses | Useless parentheses. | 4 | 2244 |
UselessParentheses | Useless parentheses. | 4 | 2322 |
org/codehaus/plexus/util/SweeperPool.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 96 |
UselessParentheses | Useless parentheses. | 4 | 120 |
UselessParentheses | Useless parentheses. | 4 | 120 |
UselessParentheses | Useless parentheses. | 4 | 120 |
UselessParentheses | Useless parentheses. | 4 | 207 |
UselessParentheses | Useless parentheses. | 4 | 207 |
UselessParentheses | Useless parentheses. | 4 | 207 |
UselessParentheses | Useless parentheses. | 4 | 208 |
UselessParentheses | Useless parentheses. | 4 | 208 |
UselessParentheses | Useless parentheses. | 4 | 208 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'debug': private methods cannot be overridden | 3 | 333–339 |
org/codehaus/plexus/util/TypeFormat.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 104 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 137 |
UselessParentheses | Useless parentheses. | 4 | 139 |
UselessParentheses | Useless parentheses. | 4 | 142 |
UselessParentheses | Useless parentheses. | 4 | 142 |
UselessParentheses | Useless parentheses. | 4 | 147 |
UselessParentheses | Useless parentheses. | 4 | 147 |
UselessParentheses | Useless parentheses. | 4 | 147 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 193 |
UselessParentheses | Useless parentheses. | 4 | 195 |
UselessParentheses | Useless parentheses. | 4 | 198 |
UselessParentheses | Useless parentheses. | 4 | 198 |
UselessParentheses | Useless parentheses. | 4 | 203 |
UselessParentheses | Useless parentheses. | 4 | 203 |
UselessParentheses | Useless parentheses. | 4 | 203 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 249 |
UselessParentheses | Useless parentheses. | 4 | 251 |
UselessParentheses | Useless parentheses. | 4 | 254 |
UselessParentheses | Useless parentheses. | 4 | 254 |
UselessParentheses | Useless parentheses. | 4 | 259 |
UselessParentheses | Useless parentheses. | 4 | 259 |
UselessParentheses | Useless parentheses. | 4 | 259 |
UselessParentheses | Useless parentheses. | 4 | 288 |
UselessParentheses | Useless parentheses. | 4 | 288 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 314 |
UselessParentheses | Useless parentheses. | 4 | 315 |
UselessParentheses | Useless parentheses. | 4 | 315 |
UselessParentheses | Useless parentheses. | 4 | 318 |
UselessParentheses | Useless parentheses. | 4 | 318 |
UselessParentheses | Useless parentheses. | 4 | 335 |
UselessParentheses | Useless parentheses. | 4 | 335 |
UselessParentheses | Useless parentheses. | 4 | 339 |
UselessParentheses | Useless parentheses. | 4 | 339 |
UselessParentheses | Useless parentheses. | 4 | 343 |
UselessParentheses | Useless parentheses. | 4 | 343 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 366 |
UselessParentheses | Useless parentheses. | 4 | 367 |
UselessParentheses | Useless parentheses. | 4 | 367 |
UselessParentheses | Useless parentheses. | 4 | 372 |
UselessParentheses | Useless parentheses. | 4 | 372 |
UselessParentheses | Useless parentheses. | 4 | 480 |
EmptyControlStatement | Empty for statement | 3 | 480–482 |
UselessParentheses | Useless parentheses. | 4 | 480 |
UselessParentheses | Useless parentheses. | 4 | 580 |
EmptyControlStatement | Empty for statement | 3 | 580–582 |
UselessParentheses | Useless parentheses. | 4 | 580 |
UselessParentheses | Useless parentheses. | 4 | 743 |
UselessParentheses | Useless parentheses. | 4 | 743 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.lang.IllegalArgumentException' due to existing implicit import 'java.lang.*' | 4 | 750 |
UselessParentheses | Useless parentheses. | 4 | 818 |
UselessParentheses | Useless parentheses. | 4 | 840 |
UselessParentheses | Useless parentheses. | 4 | 840 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'multE': private methods cannot be overridden | 3 | 907–937 |
org/codehaus/plexus/util/cli/CommandLineUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 190 |
DontCallThreadRun | Dont call Thread.run() explicitly, use Thread.start() | 4 | 274 |
UselessParentheses | Useless parentheses. | 4 | 415 |
UselessParentheses | Useless parentheses. | 4 | 415 |
UselessParentheses | Useless parentheses. | 4 | 485 |
UselessParentheses | Useless parentheses. | 4 | 485 |
UselessParentheses | Useless parentheses. | 4 | 606 |
UselessParentheses | Useless parentheses. | 4 | 606 |
org/codehaus/plexus/util/cli/Commandline.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 155 |
UselessParentheses | Useless parentheses. | 4 | 155 |
UselessParentheses | Useless parentheses. | 4 | 192 |
UselessParentheses | Useless parentheses. | 4 | 192 |
UselessParentheses | Useless parentheses. | 4 | 252 |
org/codehaus/plexus/util/cli/EnhancedStringTokenizer.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 58 |
org/codehaus/plexus/util/cli/ShutdownHookUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 3 | 36–38 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 39–41 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 51–53 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 54–56 |
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 | 75–76 |
org/codehaus/plexus/util/cli/StreamPumper.java
Rule | Violation | Priority | Line |
---|---|---|---|
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 126 |
org/codehaus/plexus/util/cli/shell/BourneShell.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 72 |
UselessParentheses | Useless parentheses. | 4 | 91 |
org/codehaus/plexus/util/cli/shell/Shell.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 116 |
UselessParentheses | Useless parentheses. | 4 | 334 |
UselessParentheses | Useless parentheses. | 4 | 334 |
org/codehaus/plexus/util/dag/CycleDetector.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 109 |
org/codehaus/plexus/util/dag/TopologicalSorter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 77 |
org/codehaus/plexus/util/introspection/ClassMap.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnusedLocalVariable | Avoid unused local variables such as 'methodKey'. | 3 | 135 |
org/codehaus/plexus/util/introspection/MethodMap.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 403 |
org/codehaus/plexus/util/io/CachingOutputStream.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryImport | Unused import 'java.nio.file.Files' | 4 | 25 |
UnnecessaryImport | Unused import 'java.nio.file.attribute.FileTime' | 4 | 28 |
UnnecessaryImport | Unused import 'java.time.Instant' | 4 | 29 |
UnusedPrivateField | Avoid unused private fields such as 'path'. | 3 | 38 |
org/codehaus/plexus/util/io/CachingWriter.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryImport | Unused import 'java.io.StringWriter' | 4 | 22 |
UnnecessaryImport | Unused import 'java.nio.file.Files' | 4 | 24 |
UnnecessaryImport | Unused import 'java.util.Arrays' | 4 | 26 |
org/codehaus/plexus/util/xml/XmlReader.java
Rule | Violation | Priority | Line |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 379–392 |
UnusedFormalParameter | Avoid unused method parameters such as 'lenient'. | 3 | 440 |
UselessParentheses | Useless parentheses. | 4 | 609 |
UselessParentheses | Useless parentheses. | 4 | 750 |
UselessParentheses | Useless parentheses. | 4 | 757 |
org/codehaus/plexus/util/xml/Xpp3DomUtils.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 280 |
UselessParentheses | Useless parentheses. | 4 | 285 |
org/codehaus/plexus/util/xml/pull/MXParser.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 84 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'fastHash': private methods cannot be overridden | 3 | 321–341 |
UselessParentheses | Useless parentheses. | 4 | 1252 |
UselessParentheses | Useless parentheses. | 4 | 1253 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 1454–1458 |
UnusedLocalVariable | Avoid unused local variables such as 'name'. | 3 | 2230 |
UselessParentheses | Useless parentheses. | 4 | 2345–2346 |
UselessParentheses | Useless parentheses. | 4 | 2373–2375 |
UselessParentheses | Useless parentheses. | 4 | 2374–2375 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 2442–2444 |
UnusedLocalVariable | Avoid unused local variables such as 'prefix'. | 3 | 2463 |
UselessParentheses | Useless parentheses. | 4 | 2650–2651 |
UselessParentheses | Useless parentheses. | 4 | 2650 |
UselessParentheses | Useless parentheses. | 4 | 2718 |
UselessParentheses | Useless parentheses. | 4 | 2936 |
UselessParentheses | Useless parentheses. | 4 | 2937 |
UselessParentheses | Useless parentheses. | 4 | 2937 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 3179–3204 |
UselessParentheses | Useless parentheses. | 4 | 3354 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 3694–3709 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 3696–3708 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 3805–3808 |
UselessParentheses | Useless parentheses. | 4 | 4148 |
org/codehaus/plexus/util/xml/pull/MXSerializer.java
Rule | Violation | Priority | Line |
---|---|---|---|
UselessParentheses | Useless parentheses. | 4 | 348 |
UselessParentheses | Useless parentheses. | 4 | 349 |
UselessParentheses | Useless parentheses. | 4 | 631 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 650 |
UselessParentheses | Useless parentheses. | 4 | 698 |
UselessParentheses | Useless parentheses. | 4 | 703 |
UselessParentheses | Useless parentheses. | 4 | 925 |
UselessParentheses | Useless parentheses. | 4 | 925 |
EmptyControlStatement | Empty if statement | 3 | 1203–1229 |
EmptyControlStatement | Empty if statement | 3 | 1302–1330 |
UnusedLocalVariable | Avoid unused local variables such as 'ch'. | 3 | 1352 |