mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
update java/useless-assignment-to-local to match go
This commit is contained in:
@@ -21,4 +21,4 @@ where
|
||||
read(v) and
|
||||
not def.(AssignExpr).getSource() instanceof NullLiteral and
|
||||
(def instanceof Assignment or def.(UnaryAssignExpr).getParent() instanceof ExprStmt)
|
||||
select def, "This assignment to " + v.getName() + " is useless: the value is never read."
|
||||
select def, "This definition of " + v.getName() + " is never used."
|
||||
|
||||
Reference in New Issue
Block a user