Skip to content

Commit b5236dc

Browse files
mp911deschauder
authored andcommitted
Adopt to deprecation removals in Commons.
See #1944
1 parent bfeff50 commit b5236dc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-data-r2dbc/src/main/java/org/springframework/data/r2dbc/repository/query/R2dbcQueryMethod.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*/
1616
package org.springframework.data.r2dbc.repository.query;
1717

18-
import static org.springframework.data.repository.util.ClassUtils.*;
19-
2018
import java.lang.reflect.Method;
2119
import java.util.Optional;
2220

@@ -90,7 +88,7 @@ public R2dbcQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFa
9088

9189
this.mappingContext = mappingContext;
9290

93-
if (hasParameterOfType(method, Pageable.class)) {
91+
if (ReflectionUtils.hasParameterOfType(method, Pageable.class)) {
9492

9593
TypeInformation<?> returnType = TypeInformation.fromReturnTypeOf(method);
9694

@@ -111,7 +109,7 @@ public R2dbcQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFa
111109
method.toString()));
112110
}
113111

114-
if (hasParameterOfType(method, Sort.class)) {
112+
if (ReflectionUtils.hasParameterOfType(method, Sort.class)) {
115113
throw new IllegalStateException(String.format("Method must not have Pageable *and* Sort parameter; "
116114
+ "Use sorting capabilities on Pageable instead; Offending method: %s", method.toString()));
117115
}

0 commit comments

Comments
 (0)