DATACMNS-1299 - Polishing.

Consider GeoResults as native wrapper to properly unwrap its component type.
This commit is contained in:
Mark Paluch
2018-04-17 09:58:41 +02:00
parent 3676ae0c87
commit d85e9e117e

View File

@@ -46,6 +46,7 @@ import org.springframework.core.convert.converter.GenericConverter;
import org.springframework.core.convert.support.ConfigurableConversionService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Slice;
import org.springframework.data.geo.GeoResults;
import org.springframework.data.util.StreamUtils;
import org.springframework.data.util.Streamable;
import org.springframework.data.util.TypeInformation;
@@ -302,6 +303,7 @@ public abstract class QueryExecutionConverters {
boolean needToUnwrap = type.isCollectionLike() //
|| Slice.class.isAssignableFrom(rawType) //
|| GeoResults.class.isAssignableFrom(rawType) //
|| rawType.isArray() //
|| supports(rawType) //
|| Stream.class.isAssignableFrom(rawType);