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 162164
EmptyCatchBlock Avoid empty catch blocks 174176
EmptyCatchBlock Avoid empty catch blocks 186188

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 157159

org/eclipse/jgit/pgm/Fetch.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 190192

org/eclipse/jgit/pgm/LsFiles.java

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

org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 178180

org/eclipse/jgit/pgm/TextBuiltin.java

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

org/eclipse/jgit/pgm/Version.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 109111

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

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

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

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'StoreType': nested enums are implicitly static 164166
UnnecessaryModifier Unnecessary modifier 'static' on enum 'StorageClass': nested enums are implicitly static 168170

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

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

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

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

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

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

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. 372

org/eclipse/jgit/pgm/Config.java

Rule Violation Line
UselessParentheses Useless parentheses. 9193

org/eclipse/jgit/pgm/Status.java

Rule Violation Line
UselessParentheses Useless parentheses. 263
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Collections.sort' due to existing import 'java.util.Collections' 302
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Collections.sort' due to existing import 'java.util.Collections' 339

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 372

org/eclipse/jgit/pgm/Clone.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 162164
EmptyCatchBlock Avoid empty catch blocks 3 174176
EmptyCatchBlock Avoid empty catch blocks 3 186188

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 157159

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 190192

org/eclipse/jgit/pgm/LsFiles.java

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

org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 178180

org/eclipse/jgit/pgm/Status.java

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

org/eclipse/jgit/pgm/TextBuiltin.java

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

org/eclipse/jgit/pgm/Version.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 109111

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

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

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'StoreType': nested enums are implicitly static 3 164166
UnnecessaryModifier Unnecessary modifier 'static' on enum 'StorageClass': nested enums are implicitly static 3 168170

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 144146
EmptyCatchBlock Avoid empty catch blocks 3 155157

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

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

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 44302

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

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