PMD Results
The following document contains the results of PMD 7.24.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 | 69–71 |
Priority 4
org/apache/maven/slf4j/MavenBaseLogger.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `logLevel >= currentLogLevel`. | 254 |
| UselessParentheses | Useless parentheses around `"DEBUG"`. | 384 |
org/apache/maven/slf4j/SimpleLoggerConfiguration.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `threadCL != null ? threadCL : ClassLoader.getSy...`. | 133 |
Files
org/apache/maven/slf4j/DefaultLogLevelRecorder.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 69–71 |
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 73 |
org/apache/maven/slf4j/MavenBaseLogger.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `logLevel >= currentLogLevel`. | 4 | 254 |
| UselessParentheses | Useless parentheses around `"DEBUG"`. | 4 | 384 |
org/apache/maven/slf4j/SimpleLoggerConfiguration.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `threadCL != null ? threadCL : ClassLoader.getSy...`. | 4 | 133 |


