Apache Commons logo Commons JEXL

PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 2

org/apache/commons/jexl3/JexlContext.java

Rule Violation Line
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 54
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 87
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 103
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 111
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 132
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 156
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 170
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 193

org/apache/commons/jexl3/introspection/JexlUberspect.java

Rule Violation Line
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 85
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 112
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 168

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

Rule Violation Line
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 38

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

Rule Violation Line
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 28

Priority 3

org/apache/commons/jexl3/JexlException.java

Rule Violation Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 656662

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). 110
UnusedAssignment The updated value of variable 'nc' is never used 896
UnusedAssignment The updated value of variable 'nc' is never used 897
UnusedAssignment The updated value of variable 'nc' is never used 899

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 596
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 1027

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 708
UnusedAssignment The updated value of variable 'nc' is never used 710
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xcancel' on all code paths 782
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 786

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/TemplateDebugger.java

Rule Violation Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 292310

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

Rule Violation Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 9531091
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 973
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 990
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1020
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1031
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1074
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 1133

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

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

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/internal/introspection/Uberspect.java

Rule Violation Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 321362
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 389420

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

Rule Violation Line
AccessorMethodGeneration Consider giving this member package visibility to access it from without a synthetic accessor method 372

Files

org/apache/commons/jexl3/JexlContext.java

Rule Violation Priority Line
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 54
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 87
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 103
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 111
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 132
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 156
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 170
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 193

org/apache/commons/jexl3/JexlException.java

Rule Violation Priority Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 656662

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 110
UnusedAssignment The updated value of variable 'nc' is never used 3 896
UnusedAssignment The updated value of variable 'nc' is never used 3 897
UnusedAssignment The updated value of variable 'nc' is never used 3 899

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 596
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 3 1027

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 708
UnusedAssignment The updated value of variable 'nc' is never used 3 710
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xcancel' on all code paths 3 782
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'xjexl' on all code paths 3 786

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/TemplateDebugger.java

Rule Violation Priority Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 292310

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

Rule Violation Priority Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 9531091
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 973
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 990
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1020
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1031
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1074
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 1133

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

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

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/internal/introspection/Uberspect.java

Rule Violation Priority Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 321362
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 389420

org/apache/commons/jexl3/introspection/JexlUberspect.java

Rule Violation Priority Line
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 85
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 112
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 168

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

Rule Violation Priority Line
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 38

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

Rule Violation Priority Line
AccessorMethodGeneration Consider giving this member package visibility to access it from without a synthetic accessor method 3 372

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

Rule Violation Priority Line
ImplicitFunctionalInterface Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent. 2 28

Suppressed Violations

Filename Rule message Suppression type Reason
org/apache/commons/jexl3/parser/TokenMgrException.java Avoid unused private fields such as 'state'. @suppresswarnings