PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 2

org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java

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

Priority 3

org/eclipse/jgit/lfs/LfsBlobFilter.java

Rule Violation Line
EmptyWhileStmt Avoid empty while statements 120122

org/eclipse/jgit/lfs/LfsPrePushHook.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 43277
EmptyWhileStmt Avoid empty while statements 138140

org/eclipse/jgit/lfs/Protocol.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'gson': the method is declared in an interface type 170175

org/eclipse/jgit/lfs/lib/AbbreviatedLongObjectId.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'isId': the method is already in a final class 8192
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromString': the method is already in a final class 106114
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromLongObjectId': the method is already in a final class 127132
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromString': the method is already in a final class 141147
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromHexString': private methods cannot be overridden 149160
UnnecessaryModifier Unnecessary modifier 'final' on method 'hexUInt64': private methods cannot be overridden 162174
UnnecessaryModifier Unnecessary modifier 'final' on method 'prefixCompare': the method is already in a final class 252268
UnnecessaryModifier Unnecessary modifier 'final' on method 'prefixCompare': the method is already in a final class 284300
UnnecessaryModifier Unnecessary modifier 'final' on method 'prefixCompare': the method is already in a final class 316332
UnnecessaryModifier Unnecessary modifier 'final' on method 'getFirstByte': the method is already in a final class 339341
UnnecessaryModifier Unnecessary modifier 'final' on method 'name': the method is already in a final class 369386

org/eclipse/jgit/lfs/lib/AnyLongObjectId.java

Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 278

org/eclipse/jgit/lfs/lib/LongObjectId.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromHexString': private methods cannot be overridden 252263

Priority 4

org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java

Rule Violation Line
UselessParentheses Useless parentheses. 143144
UselessParentheses Useless parentheses. 311312

org/eclipse/jgit/lfs/lib/AnyLongObjectId.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'org.eclipse.jgit.lib.AnyObjectId' 51

Files

org/eclipse/jgit/lfs/LfsBlobFilter.java

Rule Violation Priority Line
EmptyWhileStmt Avoid empty while statements 3 120122

org/eclipse/jgit/lfs/LfsPrePushHook.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 43277
EmptyWhileStmt Avoid empty while statements 3 138140

org/eclipse/jgit/lfs/Protocol.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'gson': the method is declared in an interface type 3 170175

org/eclipse/jgit/lfs/internal/LfsConnectionFactory.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 143144
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 149
UselessParentheses Useless parentheses. 4 311312

org/eclipse/jgit/lfs/lib/AbbreviatedLongObjectId.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'isId': the method is already in a final class 3 8192
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromString': the method is already in a final class 3 106114
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromLongObjectId': the method is already in a final class 3 127132
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromString': the method is already in a final class 3 141147
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromHexString': private methods cannot be overridden 3 149160
UnnecessaryModifier Unnecessary modifier 'final' on method 'hexUInt64': private methods cannot be overridden 3 162174
UnnecessaryModifier Unnecessary modifier 'final' on method 'prefixCompare': the method is already in a final class 3 252268
UnnecessaryModifier Unnecessary modifier 'final' on method 'prefixCompare': the method is already in a final class 3 284300
UnnecessaryModifier Unnecessary modifier 'final' on method 'prefixCompare': the method is already in a final class 3 316332
UnnecessaryModifier Unnecessary modifier 'final' on method 'getFirstByte': the method is already in a final class 3 339341
UnnecessaryModifier Unnecessary modifier 'final' on method 'name': the method is already in a final class 3 369386

org/eclipse/jgit/lfs/lib/AnyLongObjectId.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'org.eclipse.jgit.lib.AnyObjectId' 4 51
SimplifiedTernary Ternary operators that can be simplified with || or && 3 278

org/eclipse/jgit/lfs/lib/LongObjectId.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'fromHexString': private methods cannot be overridden 3 252263