mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Java: Address feedback and fix test failures
This commit is contained in:
committed by
Chris Smowton
parent
58d2d5d14e
commit
020aa4d94c
@@ -391,7 +391,7 @@ predicate literalInsteadOfConstant(
|
||||
exists(string context |
|
||||
canUseFieldInsteadOfLiteral(constField, magicLiteral, context) and
|
||||
message =
|
||||
"Literal value '" + magicLiteral.getValue() + "' used " + " in a call to " + context +
|
||||
"Literal value '" + magicLiteral.getLiteral() + "' used " + " in a call to " + context +
|
||||
"; consider using the defined constant $@." and
|
||||
linkText = constField.getName() and
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user