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 d62d993d8e
commit f9bd02854a

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();
}