Removed deprecated function call in JpaQueryMethod.

The method `assertParameterNamesInAnnotatedQuery()` used the deprecated function `StringUtils.isEmpty(String)`.
This has been changed to a function call that is not deprecated and has the same logic.

Original pull request #2375
This commit is contained in:
Diego Krupitza
2021-12-04 09:18:30 +01:00
committed by Jens Schauder
parent 5c7a00e2f6
commit 2b37dc22a0

View File

@@ -165,7 +165,7 @@ public class JpaQueryMethod extends QueryMethod {
continue;
}
if (StringUtils.isEmpty(annotatedQuery)
if (!StringUtils.hasText(annotatedQuery)
|| !annotatedQuery.contains(String.format(":%s", parameter.getName().get()))
&& !annotatedQuery.contains(String.format("#%s", parameter.getName().get()))) {
throw new IllegalStateException(