Skip to content

Commit 2b37dc2

Browse files
DiegoKrupitzaschauder
authored andcommitted
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 spring-projects#2375
1 parent 5c7a00e commit 2b37dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/jpa/repository/query/JpaQueryMethod.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private void assertParameterNamesInAnnotatedQuery() {
165165
continue;
166166
}
167167

168-
if (StringUtils.isEmpty(annotatedQuery)
168+
if (!StringUtils.hasText(annotatedQuery)
169169
|| !annotatedQuery.contains(String.format(":%s", parameter.getName().get()))
170170
&& !annotatedQuery.contains(String.format("#%s", parameter.getName().get()))) {
171171
throw new IllegalStateException(

0 commit comments

Comments
 (0)