Apache Commons logo Apache Commons Numbers

PMD Results

The following document contains the results of PMD 7.3.0.

Violations By Priority

Priority 2

org/apache/commons/numbers/primes/Primes.java
Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'n' 75
org/apache/commons/numbers/primes/SmallPrimes.java
Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'n' 154
AvoidReassigningParameters Avoid reassigning parameters such as 'n' 199
AvoidReassigningParameters Avoid reassigning parameters such as 'n' 224

Priority 3

org/apache/commons/numbers/primes/Primes.java
Rule Violation Line
AvoidLiteralsInIfCondition Avoid using literals in if statements 49
AvoidLiteralsInIfCondition Avoid using literals in if statements 72
AvoidLiteralsInIfCondition Avoid using literals in if statements 109
org/apache/commons/numbers/primes/SmallPrimes.java
Rule Violation Line
AvoidLiteralsInIfCondition Avoid using literals in if statements 251
AvoidLiteralsInIfCondition Avoid using literals in if statements 254
AvoidLiteralsInIfCondition Avoid using literals in if statements 257

Files

org/apache/commons/numbers/primes/Primes.java

Rule Violation Priority Line
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 49
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 72
AvoidReassigningParameters Avoid reassigning parameters such as 'n' 2 75
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 109

org/apache/commons/numbers/primes/SmallPrimes.java

Rule Violation Priority Line
AvoidReassigningParameters Avoid reassigning parameters such as 'n' 2 154
AvoidReassigningParameters Avoid reassigning parameters such as 'n' 2 199
AvoidReassigningParameters Avoid reassigning parameters such as 'n' 2 224
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 251
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 254
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 257