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:
committed by
Jens Schauder
parent
5c7a00e2f6
commit
2b37dc22a0
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user