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) 28106

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) 27119

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 176177
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() 9698
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 102104

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

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

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

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

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 28106

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 27119
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 9698
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 102104

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 7577

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 7678

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 176177
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