diff --git a/src/main/java/com/cflint/plugins/core/UnusedLocalVarChecker.java b/src/main/java/com/cflint/plugins/core/UnusedLocalVarChecker.java index 4635b371d..db79c1f1e 100644 --- a/src/main/java/com/cflint/plugins/core/UnusedLocalVarChecker.java +++ b/src/main/java/com/cflint/plugins/core/UnusedLocalVarChecker.java @@ -67,7 +67,7 @@ protected void addLocalVariable(final String variable, final Integer lineNo) { protected void setLocalVariableLineNo(final String variable, final Integer lineNo) { if (variable != null && localVariables.get(variable.toLowerCase()) != null) { - localVariables.get(variable).lineNumber=lineNo; + localVariables.get(variable.toLowerCase()).lineNumber=lineNo; } }