Java: Address feedback and fix test failures

This commit is contained in:
Marcono1234
2021-09-11 02:48:24 +02:00
committed by Chris Smowton
parent 58d2d5d14e
commit 020aa4d94c
4 changed files with 5 additions and 5 deletions

View File

@@ -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
(