PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

org/eclipse/jgit/pgm/Clone.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 157159
EmptyCatchBlock Avoid empty catch blocks 168170
EmptyCatchBlock Avoid empty catch blocks 179181
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/DiffTool.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 206208
org/eclipse/jgit/pgm/Fetch.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 175177
org/eclipse/jgit/pgm/LsFiles.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 1077
org/eclipse/jgit/pgm/MergeTool.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 177179
CollapsibleIfStatements This if statement could be combined with its parent 411413
org/eclipse/jgit/pgm/RevWalkTextBuiltin.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 147149
org/eclipse/jgit/pgm/TextBuiltin.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 12481
EmptyCatchBlock Avoid empty catch blocks 225227
org/eclipse/jgit/pgm/Version.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7476
org/eclipse/jgit/pgm/debug/BenchmarkReftable.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 11369
org/eclipse/jgit/pgm/debug/RebuildCommitGraph.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'br': resource specifications are implicitly final 110112
EmptyCatchBlock Avoid empty catch blocks 121123
org/eclipse/jgit/pgm/debug/WriteReftable.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 11268
org/eclipse/jgit/pgm/opt/CmdLineParser.java
Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 263

Priority 4

org/eclipse/jgit/console/ConsoleAuthenticator.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Authenticator': 'setDefault' is already in scope 36
org/eclipse/jgit/console/ConsoleCredentialsProvider.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CredentialsProvider': 'setDefault' is already in scope 41
org/eclipse/jgit/pgm/Status.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collections' is already in scope because it is imported in this file 270
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collections' is already in scope because it is imported in this file 308
org/eclipse/jgit/pgm/debug/BenchmarkReftable.java
Rule Violation Line
UselessParentheses Useless parentheses. 130
UselessParentheses Useless parentheses. 203
UselessParentheses Useless parentheses. 221
UselessParentheses Useless parentheses. 237
UselessParentheses Useless parentheses. 253
UselessParentheses Useless parentheses. 271
UselessParentheses Useless parentheses. 287
UselessParentheses Useless parentheses. 306
UselessParentheses Useless parentheses. 322
org/eclipse/jgit/pgm/debug/TextHashFunctions.java
Rule Violation Line
UselessParentheses Useless parentheses. 79
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RawTextComparator': 'DEFAULT' is already in scope because it is inherited by an enclosing type 413

Files

org/eclipse/jgit/console/ConsoleAuthenticator.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'Authenticator': 'setDefault' is already in scope 4 36

org/eclipse/jgit/console/ConsoleCredentialsProvider.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CredentialsProvider': 'setDefault' is already in scope 4 41

org/eclipse/jgit/pgm/Clone.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 157159
EmptyCatchBlock Avoid empty catch blocks 3 168170
EmptyCatchBlock Avoid empty catch blocks 3 179181

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/DiffTool.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 206208

org/eclipse/jgit/pgm/Fetch.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 175177

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/MergeTool.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 177179
CollapsibleIfStatements This if statement could be combined with its parent 3 411413

org/eclipse/jgit/pgm/RevWalkTextBuiltin.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 147149

org/eclipse/jgit/pgm/Status.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collections' is already in scope because it is imported in this file 4 270
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.util': 'Collections' is already in scope because it is imported in this file 4 308

org/eclipse/jgit/pgm/TextBuiltin.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 12481
EmptyCatchBlock Avoid empty catch blocks 3 225227

org/eclipse/jgit/pgm/Version.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7476

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

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 11369
UselessParentheses Useless parentheses. 4 130
UselessParentheses Useless parentheses. 4 203
UselessParentheses Useless parentheses. 4 221
UselessParentheses Useless parentheses. 4 237
UselessParentheses Useless parentheses. 4 253
UselessParentheses Useless parentheses. 4 271
UselessParentheses Useless parentheses. 4 287
UselessParentheses Useless parentheses. 4 306
UselessParentheses Useless parentheses. 4 322

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 110112
EmptyCatchBlock Avoid empty catch blocks 3 121123

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 79
UnnecessaryFullyQualifiedName Unnecessary qualifier 'RawTextComparator': 'DEFAULT' is already in scope because it is inherited by an enclosing type 4 413

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

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

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

Rule Violation Priority Line
SimplifiedTernary This conditional expression can be simplified with || or && 3 263