PMD Results

The following document contains the results of PMD 6.21.0.

Violations By Priority

Priority 3

org/eclipse/jgit/pgm/Clone.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 133135
EmptyCatchBlock Avoid empty catch blocks 145147
EmptyCatchBlock Avoid empty catch blocks 157159

org/eclipse/jgit/pgm/Command.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'name': the method is declared in an annotation type 36
UnnecessaryModifier Unnecessary modifier 'public' on method 'usage': the method is declared in an annotation type 43
UnnecessaryModifier Unnecessary modifier 'public' on method 'common': the method is declared in an annotation type 50

org/eclipse/jgit/pgm/CommandCatalog.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 119121

org/eclipse/jgit/pgm/Fetch.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 157159

org/eclipse/jgit/pgm/LsFiles.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1077

org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 145147

org/eclipse/jgit/pgm/TextBuiltin.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 12473

org/eclipse/jgit/pgm/Version.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7678

org/eclipse/jgit/pgm/debug/BenchmarkReftable.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 11318

org/eclipse/jgit/pgm/debug/RebuildCommitGraph.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'br': resource specifications are implicitly final 111113
EmptyCatchBlock Avoid empty catch blocks 122124

org/eclipse/jgit/pgm/debug/WriteReftable.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 11269

org/eclipse/jgit/pgm/opt/CmdLineParser.java

Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 262

Priority 4

org/eclipse/jgit/pgm/Blame.java

Rule Violation Line
UselessParentheses Useless parentheses. 363

org/eclipse/jgit/pgm/Config.java

Rule Violation Line
UselessParentheses Useless parentheses. 9193

org/eclipse/jgit/pgm/Main.java

Rule Violation Line
UselessParentheses Useless parentheses. 355

org/eclipse/jgit/pgm/Status.java

Rule Violation Line
UselessParentheses Useless parentheses. 230
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Collections.sort' due to existing import 'java.util.Collections' 269
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Collections.sort' due to existing import 'java.util.Collections' 306

org/eclipse/jgit/pgm/debug/TextHashFunctions.java

Rule Violation Line
UselessParentheses Useless parentheses. 82

Files

org/eclipse/jgit/pgm/Blame.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 363

org/eclipse/jgit/pgm/Clone.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 133135
EmptyCatchBlock Avoid empty catch blocks 3 145147
EmptyCatchBlock Avoid empty catch blocks 3 157159

org/eclipse/jgit/pgm/Command.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'name': the method is declared in an annotation type 3 36
UnnecessaryModifier Unnecessary modifier 'public' on method 'usage': the method is declared in an annotation type 3 43
UnnecessaryModifier Unnecessary modifier 'public' on method 'common': the method is declared in an annotation type 3 50

org/eclipse/jgit/pgm/CommandCatalog.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 119121

org/eclipse/jgit/pgm/Config.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 9193

org/eclipse/jgit/pgm/Fetch.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 157159

org/eclipse/jgit/pgm/LsFiles.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 1077

org/eclipse/jgit/pgm/Main.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 355

org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 145147

org/eclipse/jgit/pgm/Status.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 230
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Collections.sort' due to existing import 'java.util.Collections' 4 269
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Collections.sort' due to existing import 'java.util.Collections' 4 306

org/eclipse/jgit/pgm/TextBuiltin.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 12473

org/eclipse/jgit/pgm/Version.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7678

org/eclipse/jgit/pgm/debug/BenchmarkReftable.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 11318

org/eclipse/jgit/pgm/debug/RebuildCommitGraph.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'br': resource specifications are implicitly final 3 111113
EmptyCatchBlock Avoid empty catch blocks 3 122124

org/eclipse/jgit/pgm/debug/TextHashFunctions.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 82

org/eclipse/jgit/pgm/debug/WriteReftable.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 11269

org/eclipse/jgit/pgm/opt/CmdLineParser.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 262