From 280b101caace70bbc76350e423a3fa711be19a20 Mon Sep 17 00:00:00 2001 From: erik-krogh Date: Thu, 11 Aug 2022 22:20:53 +0200 Subject: [PATCH] update java/useless-assignment-to-local to match go --- .../Dead Code/DeadStoreOfLocalUnread.ql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/ql/src/Violations of Best Practice/Dead Code/DeadStoreOfLocalUnread.ql b/java/ql/src/Violations of Best Practice/Dead Code/DeadStoreOfLocalUnread.ql index ccca6818ad1..582e109e35e 100644 --- a/java/ql/src/Violations of Best Practice/Dead Code/DeadStoreOfLocalUnread.ql +++ b/java/ql/src/Violations of Best Practice/Dead Code/DeadStoreOfLocalUnread.ql @@ -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."