Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 280b101

Browse files
committed
update java/useless-assignment-to-local to match go
1 parent 034d197 commit 280b101

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ where
2121
read(v) and
2222
not def.(AssignExpr).getSource() instanceof NullLiteral and
2323
(def instanceof Assignment or def.(UnaryAssignExpr).getParent() instanceof ExprStmt)
24-
select def, "This assignment to " + v.getName() + " is useless: the value is never read."
24+
select def, "This definition of " + v.getName() + " is never used."

0 commit comments

Comments
 (0)