PMD Results

The following document contains the results of PMD 7.7.0.

Violations By Priority

Priority 3

org/apache/maven/buildcache/CacheControllerImpl.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19986

org/apache/maven/buildcache/CacheDiff.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'config'. 46

org/apache/maven/buildcache/CacheUtils.java

Rule Violation Line
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 272
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 274
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 297

org/apache/maven/buildcache/LocalCacheRepositoryImpl.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19419
CollapsibleIfStatements This if statement could be combined with its parent 315317

org/apache/maven/buildcache/checksum/MavenProjectInput.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19911
EmptyControlStatement Empty if statement 576604

org/apache/maven/buildcache/hash/CloseableBuffer.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 115116
EmptyCatchBlock Avoid empty catch blocks 142143

Priority 4

org/apache/maven/buildcache/BuildCacheMojosExecutionStrategy.java

Rule Violation Line
UselessParentheses Useless parentheses. 380

org/apache/maven/buildcache/CacheControllerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringUtils': 'isNotBlank' is already in scope 818

org/apache/maven/buildcache/DefaultNormalizedModelProvider.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.model': 'Build' is already in scope because it is imported in this file 87

org/apache/maven/buildcache/checksum/MavenProjectInput.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CacheUtils': 'isPom' is already in scope 771

org/apache/maven/buildcache/hash/HashFactory.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HashFactory': 'values' is already in scope 43

Files

org/apache/maven/buildcache/BuildCacheMojosExecutionStrategy.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 380

org/apache/maven/buildcache/CacheControllerImpl.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19986
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringUtils': 'isNotBlank' is already in scope 4 818

org/apache/maven/buildcache/CacheDiff.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'config'. 3 46

org/apache/maven/buildcache/CacheUtils.java

Rule Violation Priority Line
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 272
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 274
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 297

org/apache/maven/buildcache/DefaultNormalizedModelProvider.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'org.apache.maven.model': 'Build' is already in scope because it is imported in this file 4 87

org/apache/maven/buildcache/LocalCacheRepositoryImpl.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19419
CollapsibleIfStatements This if statement could be combined with its parent 3 315317

org/apache/maven/buildcache/checksum/MavenProjectInput.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19911
EmptyControlStatement Empty if statement 3 576604
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CacheUtils': 'isPom' is already in scope 4 771

org/apache/maven/buildcache/hash/CloseableBuffer.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 115116
EmptyCatchBlock Avoid empty catch blocks 3 142143

org/apache/maven/buildcache/hash/HashFactory.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'HashFactory': 'values' is already in scope 4 43

Suppressed Violations

Filename Rule message Suppression type Reason
org/apache/maven/buildcache/BuildCacheMojosExecutionStrategy.java Avoid unused method parameters such as 'mojoExecutionRunner'. @suppresswarnings
org/apache/maven/buildcache/CacheControllerImpl.java Avoid unused constructor parameters such as 'repoSystem'. @suppresswarnings
org/apache/maven/buildcache/CacheControllerImpl.java Avoid unused method parameters such as 'project'. @suppresswarnings
org/apache/maven/buildcache/CacheControllerImpl.java Avoid unused method parameters such as 'parentDir'. @suppresswarnings