46
46
import org .springframework .data .util .Streamable ;
47
47
import org .springframework .data .util .TypeInformation ;
48
48
import org .springframework .lang .Nullable ;
49
- import org .springframework .scheduling .annotation .AsyncResult ;
50
49
import org .springframework .util .Assert ;
51
50
import org .springframework .util .ClassUtils ;
52
51
import org .springframework .util .ConcurrentReferenceHashMap ;
53
52
import org .springframework .util .ObjectUtils ;
54
- import org .springframework .util .concurrent .ListenableFuture ;
55
53
56
54
/**
57
55
* Converters to potentially wrap the execution of a repository method into a variety of wrapper types potentially being
58
56
* available on the classpath. Currently supported:
59
57
* <ul>
60
58
* <li>{@code java.util.concurrent.Future}</li>
61
59
* <li>{@code java.util.concurrent.CompletableFuture}</li>
62
- * <li>{@code org.springframework.util.concurrent.ListenableFuture<}</li>
63
- * <li>{@code javaslang.collection.Seq}, {@code javaslang.collection.Map}, {@code javaslang.collection.Set} - as of
64
- * 1.13</ li>
65
- * <li>{@code io.vavr.collection.Seq}, {@code io.vavr.collection.Map}, {@code io.vavr.collection.Set} - as of 2.0 </li>
60
+ * <li>{@code javaslang.collection.Seq}, {@code javaslang.collection.Map}, {@code javaslang.collection.Set} - as of 1.13
61
+ * via {@link CustomCollections}</li>
62
+ * < li>{@code io.vavr.collection.Seq}, {@code io.vavr.collection.Map}, {@code io.vavr.collection.Set} - as of 2.0 via
63
+ * {@link CustomCollections} </li>
66
64
* <li>Reactive wrappers supported by {@link org.springframework.data.util.ReactiveWrappers} - as of 2.0</li>
67
65
* </ul>
68
66
*
74
72
* @since 1.8
75
73
* @see NullableWrapperConverters
76
74
*/
77
- @ SuppressWarnings ("removal" )
78
75
public abstract class QueryExecutionConverters {
79
76
80
77
private static final boolean VAVR_PRESENT = ClassUtils .isPresent ("io.vavr.control.Try" ,
@@ -92,9 +89,7 @@ public abstract class QueryExecutionConverters {
92
89
93
90
WRAPPER_TYPES .add (WrapperType .singleValue (Future .class ));
94
91
UNWRAPPER_TYPES .add (WrapperType .singleValue (Future .class ));
95
- WRAPPER_TYPES .add (WrapperType .singleValue (ListenableFuture .class ));
96
92
WRAPPER_TYPES .add (WrapperType .singleValue (CompletableFuture .class ));
97
- UNWRAPPER_TYPES .add (WrapperType .singleValue (ListenableFuture .class ));
98
93
UNWRAPPER_TYPES .add (WrapperType .singleValue (CompletableFuture .class ));
99
94
100
95
ALLOWED_PAGEABLE_TYPES .add (Slice .class );
0 commit comments