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 133–135
EmptyCatchBlock Avoid empty catch blocks 145–147
EmptyCatchBlock Avoid empty catch blocks 157–159

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 119–121

org/eclipse/jgit/pgm/Fetch.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 157–159

org/eclipse/jgit/pgm/LsFiles.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 10–77

org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 145–147

org/eclipse/jgit/pgm/TextBuiltin.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 12–473

org/eclipse/jgit/pgm/Version.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 76–78

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

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 11–318

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

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'br': resource specifications are implicitly final 111–113
EmptyCatchBlock Avoid empty catch blocks 122–124

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

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 11–269

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. 91–93

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 133–135
EmptyCatchBlock Avoid empty catch blocks 3 145–147
EmptyCatchBlock Avoid empty catch blocks 3 157–159

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 119–121

org/eclipse/jgit/pgm/Config.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 91–93

org/eclipse/jgit/pgm/Fetch.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 157–159

org/eclipse/jgit/pgm/LsFiles.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 10–77

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 145–147

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 12–473

org/eclipse/jgit/pgm/Version.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 76–78

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

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 11–318

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 111–113
EmptyCatchBlock Avoid empty catch blocks 3 122–124

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 11–269

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

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