PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 2

org/eclipse/jgit/junit/TestRepository.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 325

Priority 3

org/eclipse/jgit/junit/JGitTestUtil.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 78–80

org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 327–328

org/eclipse/jgit/junit/Repeat.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'n': the method is declared in an annotation type 25
UnnecessaryModifier Unnecessary modifier 'public' on method 'abortOnFailure': the method is declared in an annotation type 34

org/eclipse/jgit/junit/TestRepository.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 638–640
EmptyIfStmt Avoid empty if statements 640–642
EmptyIfStmt Avoid empty if statements 642–644
EmptyIfStmt Avoid empty if statements 644–646
EmptyIfStmt Avoid empty if statements 815–817
EmptyIfStmt Avoid empty if statements 817–819

Priority 4

org/eclipse/jgit/junit/RepositoryTestCase.java

Rule Violation Line
UselessParentheses Useless parentheses. 434

Files

org/eclipse/jgit/junit/JGitTestUtil.java

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

org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 327–328

org/eclipse/jgit/junit/Repeat.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'n': the method is declared in an annotation type 3 25
UnnecessaryModifier Unnecessary modifier 'public' on method 'abortOnFailure': the method is declared in an annotation type 3 34

org/eclipse/jgit/junit/RepositoryTestCase.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 434

org/eclipse/jgit/junit/TestRepository.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 325
EmptyIfStmt Avoid empty if statements 3 638–640
EmptyIfStmt Avoid empty if statements 3 640–642
EmptyIfStmt Avoid empty if statements 3 642–644
EmptyIfStmt Avoid empty if statements 3 644–646
EmptyIfStmt Avoid empty if statements 3 815–817
EmptyIfStmt Avoid empty if statements 3 817–819