PMD Results

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

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 Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) 272
AvoidUsingOctalValues Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) 274
AvoidUsingOctalValues Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) 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 19985
EmptyControlStatement Empty if statement 578606

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 around `(Path) value`. 419

org/apache/maven/buildcache/CacheControllerImpl.java

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

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 773

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 around `(Path) value`. 4 419

org/apache/maven/buildcache/CacheControllerImpl.java

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

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 Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) 3 272
AvoidUsingOctalValues Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) 3 274
AvoidUsingOctalValues Avoid integer literals that start with zero (interpreted as octal), remove the leading 0 to get a decimal literal (or use explicit 0x, 0b prefixes) 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 19985
EmptyControlStatement Empty if statement 3 578606
UnnecessaryFullyQualifiedName Unnecessary qualifier 'CacheUtils': 'isPom' is already in scope 4 773

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 method parameters such as 'parentDir'. @suppresswarnings
org/apache/maven/buildcache/CacheControllerImpl.java Avoid unused method parameters such as 'buildStartTime'. @suppresswarnings
org/apache/maven/buildcache/CacheControllerImpl.java Avoid unused method parameters such as 'project'. @suppresswarnings