PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 3

org/eclipse/jgit/pgm/Clone.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 162–164
EmptyCatchBlock Avoid empty catch blocks 174–176
EmptyCatchBlock Avoid empty catch blocks 186–188

org/eclipse/jgit/pgm/Command.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'name': the method is declared in an annotation type 69
UnnecessaryModifier Unnecessary modifier 'public' on method 'usage': the method is declared in an annotation type 76
UnnecessaryModifier Unnecessary modifier 'public' on method 'common': the method is declared in an annotation type 83

org/eclipse/jgit/pgm/CommandCatalog.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 157–159

org/eclipse/jgit/pgm/Fetch.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 181–183

org/eclipse/jgit/pgm/LsFiles.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 43–106

org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 178–180

org/eclipse/jgit/pgm/Version.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 102–104

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

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 44–316

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

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'StoreType': nested enums are implicitly static 164–166
UnnecessaryModifier Unnecessary modifier 'static' on enum 'StorageClass': nested enums are implicitly static 168–170

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

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'br': resource specifications are implicitly final 144–146
EmptyCatchBlock Avoid empty catch blocks 155–157

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

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Format': nested enums are implicitly static 86–129

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

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 44–302

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

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

Priority 4

org/eclipse/jgit/pgm/Blame.java

Rule Violation Line
UselessParentheses Useless parentheses. 357

org/eclipse/jgit/pgm/Config.java

Rule Violation Line
UselessParentheses Useless parentheses. 88–90

org/eclipse/jgit/pgm/Status.java

Rule Violation Line
UselessParentheses Useless parentheses. 257
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Collections.sort' due to existing import 'java.util.Collections' 296
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Collections.sort' due to existing import 'java.util.Collections' 333

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

Rule Violation Line
UselessParentheses Useless parentheses. 115

Files

org/eclipse/jgit/pgm/Blame.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 357

org/eclipse/jgit/pgm/Clone.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 162–164
EmptyCatchBlock Avoid empty catch blocks 3 174–176
EmptyCatchBlock Avoid empty catch blocks 3 186–188

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 69
UnnecessaryModifier Unnecessary modifier 'public' on method 'usage': the method is declared in an annotation type 3 76
UnnecessaryModifier Unnecessary modifier 'public' on method 'common': the method is declared in an annotation type 3 83

org/eclipse/jgit/pgm/CommandCatalog.java

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

org/eclipse/jgit/pgm/Config.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 88–90

org/eclipse/jgit/pgm/Fetch.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 181–183

org/eclipse/jgit/pgm/LsFiles.java

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

org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 178–180

org/eclipse/jgit/pgm/Status.java

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

org/eclipse/jgit/pgm/Version.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 102–104

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

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

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'StoreType': nested enums are implicitly static 3 164–166
UnnecessaryModifier Unnecessary modifier 'static' on enum 'StorageClass': nested enums are implicitly static 3 168–170

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 144–146
EmptyCatchBlock Avoid empty catch blocks 3 155–157

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Format': nested enums are implicitly static 3 86–129

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 115

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

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

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

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