update java/useless-assignment-to-local to match go

This commit is contained in:
erik-krogh
2022-08-11 22:20:53 +02:00
parent 034d197e01
commit 280b101caa

View File

@@ -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."