PMD Results

The following document contains the results of PMD 6.38.0.

Violations By Priority

Priority 3

org/eclipse/jgit/pgm/Clone.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 138140
EmptyCatchBlock Avoid empty catch blocks 150152
EmptyCatchBlock Avoid empty catch blocks 162164

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 These nested if statements could be combined 128130
CollapsibleIfStatements These nested if statements could be combined 196198

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 148150

org/eclipse/jgit/pgm/TextBuiltin.java

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

org/eclipse/jgit/pgm/Version.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 7678

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/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. 365

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 365

org/eclipse/jgit/pgm/Clone.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 138140
EmptyCatchBlock Avoid empty catch blocks 3 150152
EmptyCatchBlock Avoid empty catch blocks 3 162164

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 128130
CollapsibleIfStatements These nested if statements could be combined 3 196198

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 148150

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 12477
EmptyCatchBlock Avoid empty catch blocks 3 225227

org/eclipse/jgit/pgm/Version.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 7678

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/opt/CmdLineParser.java

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

Processing Errors

Filename Problem
org/eclipse/jgit/pgm/debug/BenchmarkReftable.java PMDException: Error while processing /home/jenkins/agent/workspace/stable/jgit-publish-site/repo/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/BenchmarkReftable.java
net.sourceforge.pmd.PMDException: Error while processing /home/jenkins/agent/workspace/stable/jgit-publish-site/repo/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/BenchmarkReftable.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 56494 out of bounds for length 17885
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/eclipse/jgit/pgm/debug/DiffAlgorithms.java PMDException: Error while processing /home/jenkins/agent/workspace/stable/jgit-publish-site/repo/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/DiffAlgorithms.java
net.sourceforge.pmd.PMDException: Error while processing /home/jenkins/agent/workspace/stable/jgit-publish-site/repo/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/DiffAlgorithms.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 26497 out of bounds for length 14084
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more
org/eclipse/jgit/pgm/debug/WriteReftable.java PMDException: Error while processing /home/jenkins/agent/workspace/stable/jgit-publish-site/repo/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/WriteReftable.java
net.sourceforge.pmd.PMDException: Error while processing /home/jenkins/agent/workspace/stable/jgit-publish-site/repo/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/WriteReftable.java
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:128)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:100)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:62)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:85)
	at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:29)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 58576 out of bounds for length 12984
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at org.objectweb.asm.ClassReader.(Unknown Source)
	at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:118)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1617)
	at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:214)
	at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:44)
	at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:21)
	at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:121)
	at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:178)
	at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:205)
	at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:118)
	... 10 more