Apache Commons logo Commons JEXL

PMD Results

The following document contains the results of PMD 7.27.0.

Violations By Priority

Priority 2

org/apache/commons/jexl3/JexlConfigLoader.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 454

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

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

Priority 3

org/apache/commons/jexl3/JexlArithmetic.java

Rule Violation Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 2513

org/apache/commons/jexl3/JexlConfigLoader.java

Rule Violation Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'raw' 306

org/apache/commons/jexl3/JexlException.java

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

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). 119

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

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

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

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

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

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

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

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

Rule Violation Line
PreserveStackTrace Thrown exception does not preserve the stack trace of exception 'any' on all code paths 367

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

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

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

Rule Violation Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 1003
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1023
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1040
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1071
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1082
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 1125
UnnecessaryWarningSuppression Unnecessary PMD suppression comment 1141
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 1205

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

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

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. 769

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

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

Files

org/apache/commons/jexl3/JexlArithmetic.java

Rule Violation Priority Line
AccessorClassGeneration Avoid instantiation through private constructors from outside of the constructors class. 3 2513

org/apache/commons/jexl3/JexlConfigLoader.java

Rule Violation Priority Line
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'raw' 3 306
GuardLogStatement Logger calls should be surrounded by log level guards. 2 454

org/apache/commons/jexl3/JexlException.java

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

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 119

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

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

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

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

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

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

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

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

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

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

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

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

Rule Violation Priority Line
ExhaustiveSwitchHasDefault The switch block is exhaustive even without the default case 3 1003
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1023
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1040
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1071
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1082
AvoidReassigningLoopVariables Avoid reassigning the loop control variable 'column' 3 1125
UnnecessaryWarningSuppression Unnecessary PMD suppression comment 3 1141
LooseCoupling Avoid using implementation types like 'ArrayList'; use the interface instead 3 1205

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

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

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 769

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

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

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

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