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/arrays/MultidimensionalCounter.java
Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'index' 132
org/apache/commons/numbers/arrays/QuickSelect.java
Rule Violation Line
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 297
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 379
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 1566
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 1648

Priority 3

org/apache/commons/numbers/arrays/IndexSupport.java
Rule Violation Line
NPathComplexity The method 'createUpdatingInterval(int, int, int[], int)' has an NPath complexity of 240, current threshold is 200 42
AvoidLiteralsInIfCondition Avoid using literals in if statements 52
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 94
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 153
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 173
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 195
org/apache/commons/numbers/arrays/QuickSelect.java
Rule Violation Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 246
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 328
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 427
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 441
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 473
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 487
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'k' 1354
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'k' 1422
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 1515
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 1597
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 1696
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 1710
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 1742
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 1756
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'k' 2615
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'k' 2683
org/apache/commons/numbers/arrays/Selection.java
Rule Violation Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 210
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'j' 234
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 264
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 285
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 318
org/apache/commons/numbers/arrays/Sorting.java
Rule Violation Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 47
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 275
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 513

Files

org/apache/commons/numbers/arrays/IndexSupport.java

Rule Violation Priority Line
NPathComplexity The method 'createUpdatingInterval(int, int, int[], int)' has an NPath complexity of 240, current threshold is 200 3 42
AvoidLiteralsInIfCondition Avoid using literals in if statements 3 52
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 94
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 153
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 173
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 195

org/apache/commons/numbers/arrays/MultidimensionalCounter.java

Rule Violation Priority Line
AvoidReassigningParameters Avoid reassigning parameters such as 'index' 2 132

org/apache/commons/numbers/arrays/QuickSelect.java

Rule Violation Priority Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 246
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 297
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 328
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 379
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 427
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 441
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 473
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 487
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'k' 3 1354
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'k' 3 1422
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 1515
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 1566
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 1597
AvoidReassigningParameters Avoid reassigning parameters such as 'p' 2 1648
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 1696
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 1710
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 1742
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 1756
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'k' 3 2615
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'k' 3 2683

org/apache/commons/numbers/arrays/Selection.java

Rule Violation Priority Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 210
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'j' 3 234
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 264
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 285
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 318

org/apache/commons/numbers/arrays/Sorting.java

Rule Violation Priority Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 47
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 275
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'i' 3 513