2929import org .springframework .data .mapping .context .MappingContext ;
3030import org .springframework .data .projection .ProjectionFactory ;
3131import org .springframework .data .repository .core .RepositoryMetadata ;
32- import org .springframework .data .repository .util .ReactiveWrappers ;
33- import org .springframework .data .util .ClassTypeInformation ;
32+ import org .springframework .data .util .ReactiveWrappers ;
3433import org .springframework .data .util .Lazy ;
3534import org .springframework .data .util .TypeInformation ;
3635import org .springframework .util .ClassUtils ;
4342 */
4443public class ReactiveCouchbaseQueryMethod extends CouchbaseQueryMethod {
4544
46- private static final ClassTypeInformation <Page > PAGE_TYPE = ClassTypeInformation . from (Page .class );
47- private static final ClassTypeInformation <Slice > SLICE_TYPE = ClassTypeInformation . from (Slice .class );
45+ private static final TypeInformation <Page > PAGE_TYPE = TypeInformation . of (Page .class );
46+ private static final TypeInformation <Slice > SLICE_TYPE = TypeInformation . of (Slice .class );
4847
49- private final Method method ;
5048 private final Lazy <Boolean > isCollectionQueryCouchbase ; // not to be confused with QueryMethod.isCollectionQuery
5149
5250 /**
@@ -64,7 +62,7 @@ public ReactiveCouchbaseQueryMethod(Method method, RepositoryMetadata metadata,
6462
6563 if (hasParameterOfType (method , Pageable .class )) {
6664
67- TypeInformation <?> returnType = ClassTypeInformation .fromReturnTypeOf (method );
65+ TypeInformation <?> returnType = TypeInformation .fromReturnTypeOf (method );
6866
6967 boolean multiWrapper = ReactiveWrappers .isMultiValueType (returnType .getType ());
7068 boolean singleWrapperWithWrappedPageableResult = ReactiveWrappers .isSingleValueType (returnType .getType ())
@@ -89,7 +87,6 @@ public ReactiveCouchbaseQueryMethod(Method method, RepositoryMetadata metadata,
8987 }
9088 }
9189
92- this .method = method ;
9390 this .isCollectionQueryCouchbase = Lazy .of (() -> {
9491 boolean result = !(isPageQuery () || isSliceQuery ())
9592 && ReactiveWrappers .isMultiValueType (metadata .getReturnType (method ).getType ());
0 commit comments