mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Avoid creating message arguments to Assert.isABC calls
See https://github.com/spring-projects/spring-framework/commit/67f184293b94c076b0474231f739a74f42d5ffa8
This commit is contained in:
committed by
Juergen Hoeller
parent
b449928691
commit
659f13be1c
+1
-1
@@ -89,7 +89,7 @@ class HtmlCharacterEntityReferences {
|
||||
String key = (String) keys.nextElement();
|
||||
int referredChar = Integer.parseInt(key);
|
||||
Assert.isTrue((referredChar < 1000 || (referredChar >= 8000 && referredChar < 10000)),
|
||||
"Invalid reference to special HTML entity: " + referredChar);
|
||||
() -> "Invalid reference to special HTML entity: " + referredChar);
|
||||
int index = (referredChar < 1000 ? referredChar : referredChar - 7000);
|
||||
String reference = entityReferences.getProperty(key);
|
||||
this.characterToEntityReferenceMap[index] = REFERENCE_START + reference + REFERENCE_END;
|
||||
|
||||
Reference in New Issue
Block a user