Skip to content

Commit 031ab0c

Browse files
Thomas Darimontodrotbohm
Thomas Darimont
authored andcommitted
DATACMNS-482 - Fix compiler error due to changes in SD Commons.
Fixed a compiler that got introduced by making the geospatial types in Spring Data Commons serializable.
1 parent 10f69f6 commit 031ab0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryMethod.java

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

18+
import java.io.Serializable;
1819
import java.lang.reflect.Method;
1920
import java.util.Arrays;
2021
import java.util.List;
@@ -41,8 +42,8 @@
4142
*/
4243
public class MongoQueryMethod extends QueryMethod {
4344

44-
@SuppressWarnings("unchecked") private static final List<Class<?>> GEO_NEAR_RESULTS = Arrays.asList(GeoResult.class,
45-
GeoResults.class, GeoPage.class);
45+
@SuppressWarnings("unchecked") private static final List<Class<? extends Serializable>> GEO_NEAR_RESULTS = Arrays
46+
.asList(GeoResult.class, GeoResults.class, GeoPage.class);
4647

4748
private final Method method;
4849
private final MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext;

0 commit comments

Comments
 (0)