Apache Commons logo Apache Commons JEXL

PMD Results

The following document contains the results of PMD 7.9.0.

Violations By Priority

Priority 3

org/apache/commons/jexl3/internal/Debugger.java

Rule Violation Line
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 200
UnusedAssignment The updated value of variable 'nc' is never used 893
UnusedAssignment The updated value of variable 'nc' is never used 894
UnusedAssignment The updated value of variable 'nc' is never used 896

org/apache/commons/jexl3/internal/Engine.java

Rule Violation Line
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 593
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 1030

org/apache/commons/jexl3/internal/IntegerRange.java

Rule Violation Line
LooseCoupling Avoid using implementation types like 'IntegerRange'; use the interface instead 141
LooseCoupling Avoid using implementation types like 'IntegerRange'; use the interface instead 205

org/apache/commons/jexl3/internal/Interpreter.java

Rule Violation Line
UnusedAssignment The updated value of variable 'nc' is never used 812
UnusedAssignment The updated value of variable 'nc' is never used 814
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xcancel' on all code paths 886
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 890

org/apache/commons/jexl3/internal/LongRange.java

Rule Violation Line
LooseCoupling Avoid using implementation types like 'LongRange'; use the interface instead 145
LooseCoupling Avoid using implementation types like 'LongRange'; use the interface instead 210

org/apache/commons/jexl3/internal/TemplateEngine.java

Rule Violation Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 966
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 984
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1009
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1020
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1062
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 1117

org/apache/commons/jexl3/internal/TemplateScript.java

Rule Violation Line
MethodReturnsInternalArray Returning 'exprs' may expose an internal array. 256

org/apache/commons/jexl3/internal/introspection/AbstractExecutor.java

Rule Violation Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 31

org/apache/commons/jexl3/internal/introspection/MethodKey.java

Rule Violation Line
MethodReturnsInternalArray Returning 'params' may expose an internal array. 746

org/apache/commons/jexl3/parser/ParseException.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'expectedTokenSequences'. 73
UnusedFormalParameter Avoid unused constructor parameters such as 'tokenImage'. 73

org/apache/commons/jexl3/parser/SimpleNode.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'p'. 63

Files

org/apache/commons/jexl3/internal/Debugger.java

Rule Violation Priority Line
AvoidStringBufferField StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 3 200
UnusedAssignment The updated value of variable 'nc' is never used 3 893
UnusedAssignment The updated value of variable 'nc' is never used 3 894
UnusedAssignment The updated value of variable 'nc' is never used 3 896

org/apache/commons/jexl3/internal/Engine.java

Rule Violation Priority Line
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 3 593
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 3 1030

org/apache/commons/jexl3/internal/IntegerRange.java

Rule Violation Priority Line
LooseCoupling Avoid using implementation types like 'IntegerRange'; use the interface instead 3 141
LooseCoupling Avoid using implementation types like 'IntegerRange'; use the interface instead 3 205

org/apache/commons/jexl3/internal/Interpreter.java

Rule Violation Priority Line
UnusedAssignment The updated value of variable 'nc' is never used 3 812
UnusedAssignment The updated value of variable 'nc' is never used 3 814
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xcancel' on all code paths 3 886
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 3 890

org/apache/commons/jexl3/internal/LongRange.java

Rule Violation Priority Line
LooseCoupling Avoid using implementation types like 'LongRange'; use the interface instead 3 145
LooseCoupling Avoid using implementation types like 'LongRange'; use the interface instead 3 210

org/apache/commons/jexl3/internal/TemplateEngine.java

Rule Violation Priority Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 966
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 984
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1009
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1020
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1062
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 1117

org/apache/commons/jexl3/internal/TemplateScript.java

Rule Violation Priority Line
MethodReturnsInternalArray Returning 'exprs' may expose an internal array. 3 256

org/apache/commons/jexl3/internal/introspection/AbstractExecutor.java

Rule Violation Priority Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 31

org/apache/commons/jexl3/internal/introspection/MethodKey.java

Rule Violation Priority Line
MethodReturnsInternalArray Returning 'params' may expose an internal array. 3 746

org/apache/commons/jexl3/parser/ParseException.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'expectedTokenSequences'. 3 73
UnusedFormalParameter Avoid unused constructor parameters such as 'tokenImage'. 3 73

org/apache/commons/jexl3/parser/SimpleNode.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'p'. 3 63