PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 2

org/apache/maven/slf4j/DefaultLogLevelRecorder.java
Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 73

Priority 3

org/apache/maven/slf4j/DefaultLogLevelRecorder.java
Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 6971
org/apache/maven/slf4j/MavenBaseLogger.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'MONOTONIC_CLOCK'. 151

Priority 4

org/apache/maven/slf4j/MavenBaseLogger.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 197
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 199
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 201
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 203
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 205
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 207
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 209
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 211
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 213
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 215
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 217
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 219
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'LOG_KEY_PREFIX' is already in scope because it is declared in an enclosing type 242
UselessParentheses Useless parentheses. 325
UselessParentheses Useless parentheses. 449
org/apache/maven/slf4j/SimpleLoggerConfiguration.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SimpleLoggerConfiguration': 'SHOW_LOG_NAME_DEFAULT' is already in scope because it is declared in an enclosing type 101
UselessParentheses Useless parentheses. 128

Files

org/apache/maven/slf4j/DefaultLogLevelRecorder.java

Rule Violation Priority Line
CollapsibleIfStatements This if statement could be combined with its parent 3 6971
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 73

org/apache/maven/slf4j/MavenBaseLogger.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'MONOTONIC_CLOCK'. 3 151
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 197
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 199
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 201
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 203
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 205
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 207
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 209
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 211
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 213
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 215
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 217
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'SYSTEM_PREFIX' is already in scope because it is declared in an enclosing type 4 219
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MavenBaseLogger': 'LOG_KEY_PREFIX' is already in scope because it is declared in an enclosing type 4 242
UselessParentheses Useless parentheses. 4 325
UselessParentheses Useless parentheses. 4 449

org/apache/maven/slf4j/SimpleLoggerConfiguration.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'SimpleLoggerConfiguration': 'SHOW_LOG_NAME_DEFAULT' is already in scope because it is declared in an enclosing type 4 101
UselessParentheses Useless parentheses. 4 128