Change immediate String.format(…) evaluation to deferred.

Closes #3445
This commit is contained in:
Hyeon Sung
2024-04-24 22:20:35 +09:00
committed by Mark Paluch
parent 87c1620181
commit b9e6c24691

View File

@@ -145,7 +145,7 @@ public class JpaQueryMethod extends QueryMethod {
this.annotationCache = new ConcurrentReferenceHashMap<>();
Assert.isTrue(!(isModifyingQuery() && getParameters().hasSpecialParameter()),
String.format("Modifying method must not contain %s", Parameters.TYPES));
() -> String.format("Modifying method must not contain %s", Parameters.TYPES));
assertParameterNamesInAnnotatedQuery();
}