PMD Results

The following document contains the results of PMD 6.13.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. 356

Priority 3

org/eclipse/jgit/junit/JGitTestUtil.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 111–113

org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 352–353

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 58
UnnecessaryModifier Unnecessary modifier 'public' on method 'abortOnFailure': the method is declared in an annotation type 67

org/eclipse/jgit/junit/TestRepository.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 632–634
EmptyIfStmt Avoid empty if statements 634–636
EmptyIfStmt Avoid empty if statements 636–638
EmptyIfStmt Avoid empty if statements 638–640
EmptyIfStmt Avoid empty if statements 810–812
EmptyIfStmt Avoid empty if statements 812–814

Priority 4

org/eclipse/jgit/junit/RepositoryTestCase.java

Rule Violation Line
UselessParentheses Useless parentheses. 458

Files

org/eclipse/jgit/junit/JGitTestUtil.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 111–113

org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 352–353

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 58
UnnecessaryModifier Unnecessary modifier 'public' on method 'abortOnFailure': the method is declared in an annotation type 3 67

org/eclipse/jgit/junit/RepositoryTestCase.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 458

org/eclipse/jgit/junit/TestRepository.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 356
EmptyIfStmt Avoid empty if statements 3 632–634
EmptyIfStmt Avoid empty if statements 3 634–636
EmptyIfStmt Avoid empty if statements 3 636–638
EmptyIfStmt Avoid empty if statements 3 638–640
EmptyIfStmt Avoid empty if statements 3 810–812
EmptyIfStmt Avoid empty if statements 3 812–814