Skip to content

Commit de8384d

Browse files
committed
revert alert message change to java/unused-local-variable
1 parent 305a23b commit de8384d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/ql/src/Violations of Best Practice/Dead Code/UnusedLocal.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ where
2929
// Rules about catch clauses belong in an exception handling query
3030
not exceptionVariable(ve) and
3131
not enhancedForVariable(ve)
32-
select v, "The value assigned to local variable '" + v.getName() + "' is never used."
32+
select v,
33+
"Unused local variable " + v.getName() +
34+
". The variable is never read or written to and should be removed."

0 commit comments

Comments
 (0)