We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 305a23b commit de8384dCopy full SHA for de8384d
java/ql/src/Violations of Best Practice/Dead Code/UnusedLocal.ql
@@ -29,4 +29,6 @@ where
29
// Rules about catch clauses belong in an exception handling query
30
not exceptionVariable(ve) and
31
not enhancedForVariable(ve)
32
-select v, "The value assigned to local variable '" + v.getName() + "' is never used."
+select v,
33
+ "Unused local variable " + v.getName() +
34
+ ". The variable is never read or written to and should be removed."
0 commit comments