Apache Commons logo Commons Math

PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 1

org/apache/commons/math4/legacy/exception/util/LocalizedFormats.java

Rule Violation Line
FieldNamingConventions The enum constant name 'DIMENSIONS_MISMATCH_2x2' doesn't match '[A-Z][A-Z_0-9]*' 89

Priority 3

org/apache/commons/math4/legacy/exception/NoBracketingException.java

Rule Violation Line
DataClass The class 'NoBracketingException' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=6) 28–106

org/apache/commons/math4/legacy/exception/NonMonotonicSequenceException.java

Rule Violation Line
DataClass The class 'NonMonotonicSequenceException' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=9) 27–119

org/apache/commons/math4/legacy/exception/util/ArgUtils.java

Rule Violation Line
LocalVariableCouldBeFinal Local variable 'o' could be declared final 43

org/apache/commons/math4/legacy/exception/util/ExceptionContext.java

Rule Violation Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 176–177
AssignmentInOperand Avoid assignments in operands 179
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 268
LocalVariableCouldBeFinal Local variable 'entry' could be declared final 288

Priority 4

org/apache/commons/math4/legacy/exception/NonMonotonicSequenceException.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 96–98
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 102–104

org/apache/commons/math4/legacy/exception/NumberIsTooLargeException.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 75–77

org/apache/commons/math4/legacy/exception/NumberIsTooSmallException.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 76–78

Files

org/apache/commons/math4/legacy/exception/NoBracketingException.java

Rule Violation Priority Line
DataClass The class 'NoBracketingException' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=6) 3 28–106

org/apache/commons/math4/legacy/exception/NonMonotonicSequenceException.java

Rule Violation Priority Line
DataClass The class 'NonMonotonicSequenceException' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=9) 3 27–119
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 96–98
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 102–104

org/apache/commons/math4/legacy/exception/NumberIsTooLargeException.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 75–77

org/apache/commons/math4/legacy/exception/NumberIsTooSmallException.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 76–78

org/apache/commons/math4/legacy/exception/util/ArgUtils.java

Rule Violation Priority Line
LocalVariableCouldBeFinal Local variable 'o' could be declared final 3 43

org/apache/commons/math4/legacy/exception/util/ExceptionContext.java

Rule Violation Priority Line
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 176–177
AssignmentInOperand Avoid assignments in operands 3 179
AvoidInstantiatingObjectsInLoops Avoid instantiating new objects inside loops 3 268
LocalVariableCouldBeFinal Local variable 'entry' could be declared final 3 288

org/apache/commons/math4/legacy/exception/util/LocalizedFormats.java

Rule Violation Priority Line
FieldNamingConventions The enum constant name 'DIMENSIONS_MISMATCH_2x2' doesn't match '[A-Z][A-Z_0-9]*' 1 89