Skip to content

Commit 8489437

Browse files
committed
Adopt to deprecated QueryMethod constructor.
Closes #1567
1 parent 02987fe commit 8489437

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/repository/query/CassandraQueryMethod.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import org.springframework.data.mapping.context.MappingContext;
3030
import org.springframework.data.projection.ProjectionFactory;
3131
import org.springframework.data.repository.core.RepositoryMetadata;
32-
import org.springframework.data.repository.query.Parameters;
33-
import org.springframework.data.repository.query.ParametersSource;
3432
import org.springframework.data.repository.query.QueryMethod;
3533
import org.springframework.data.util.TypeInformation;
3634
import org.springframework.lang.Nullable;
@@ -72,7 +70,7 @@ public class CassandraQueryMethod extends QueryMethod {
7270
public CassandraQueryMethod(Method method, RepositoryMetadata repositoryMetadata, ProjectionFactory projectionFactory,
7371
MappingContext<? extends CassandraPersistentEntity<?>, ? extends CassandraPersistentProperty> mappingContext) {
7472

75-
super(method, repositoryMetadata, projectionFactory);
73+
super(method, repositoryMetadata, projectionFactory, CassandraParameters::new);
7674

7775
Assert.notNull(mappingContext, "MappingContext must not be null");
7876

@@ -129,11 +127,6 @@ public CassandraParameters getParameters() {
129127
return (CassandraParameters) super.getParameters();
130128
}
131129

132-
@Override
133-
protected Parameters<?, ?> createParameters(ParametersSource parametersSource) {
134-
return new CassandraParameters(parametersSource);
135-
}
136-
137130
/**
138131
* Returns whether the method has an annotated query.
139132
*/

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/repository/query/ReactiveCassandraQueryMethod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import org.springframework.data.projection.ProjectionFactory;
2525
import org.springframework.data.repository.core.RepositoryMetadata;
2626
import org.springframework.data.repository.util.ReactiveWrapperConverters;
27-
import org.springframework.data.repository.util.ReactiveWrappers;
2827
import org.springframework.data.util.Lazy;
28+
import org.springframework.data.util.ReactiveWrappers;
2929

3030
/**
3131
* Reactive specific implementation of {@link CassandraQueryMethod}.

0 commit comments

Comments
 (0)