diff --git a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java
index 25244db85..c986be826 100644
--- a/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java
+++ b/src/main/java/org/springframework/data/repository/core/support/RepositoryFactorySupport.java
@@ -94,7 +94,6 @@ import org.springframework.util.ObjectUtils;
* @author John Blum
* @author Johannes Englmeier
*/
-@SuppressWarnings("removal")
public abstract class RepositoryFactorySupport
implements BeanClassLoaderAware, BeanFactoryAware, EnvironmentAware, EnvironmentCapable {
diff --git a/src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java b/src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java
index f7c223af6..e840449d0 100644
--- a/src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java
+++ b/src/main/java/org/springframework/data/repository/util/QueryExecutionConverters.java
@@ -46,12 +46,10 @@ import org.springframework.data.util.StreamUtils;
import org.springframework.data.util.Streamable;
import org.springframework.data.util.TypeInformation;
import org.springframework.lang.Nullable;
-import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
import org.springframework.util.ConcurrentReferenceHashMap;
import org.springframework.util.ObjectUtils;
-import org.springframework.util.concurrent.ListenableFuture;
/**
* Converters to potentially wrap the execution of a repository method into a variety of wrapper types potentially being
@@ -59,10 +57,10 @@ import org.springframework.util.concurrent.ListenableFuture;
*
* - {@code java.util.concurrent.Future}
* - {@code java.util.concurrent.CompletableFuture}
- * - {@code org.springframework.util.concurrent.ListenableFuture<}
- * - {@code javaslang.collection.Seq}, {@code javaslang.collection.Map}, {@code javaslang.collection.Set} - as of
- * 1.13
- * - {@code io.vavr.collection.Seq}, {@code io.vavr.collection.Map}, {@code io.vavr.collection.Set} - as of 2.0
+ * - {@code javaslang.collection.Seq}, {@code javaslang.collection.Map}, {@code javaslang.collection.Set} - as of 1.13
+ * via {@link CustomCollections}
+ * - {@code io.vavr.collection.Seq}, {@code io.vavr.collection.Map}, {@code io.vavr.collection.Set} - as of 2.0 via
+ * {@link CustomCollections}
* - Reactive wrappers supported by {@link org.springframework.data.util.ReactiveWrappers} - as of 2.0
*
*
@@ -74,7 +72,6 @@ import org.springframework.util.concurrent.ListenableFuture;
* @since 1.8
* @see NullableWrapperConverters
*/
-@SuppressWarnings("removal")
public abstract class QueryExecutionConverters {
private static final boolean VAVR_PRESENT = ClassUtils.isPresent("io.vavr.control.Try",
@@ -92,9 +89,7 @@ public abstract class QueryExecutionConverters {
WRAPPER_TYPES.add(WrapperType.singleValue(Future.class));
UNWRAPPER_TYPES.add(WrapperType.singleValue(Future.class));
- WRAPPER_TYPES.add(WrapperType.singleValue(ListenableFuture.class));
WRAPPER_TYPES.add(WrapperType.singleValue(CompletableFuture.class));
- UNWRAPPER_TYPES.add(WrapperType.singleValue(ListenableFuture.class));
UNWRAPPER_TYPES.add(WrapperType.singleValue(CompletableFuture.class));
ALLOWED_PAGEABLE_TYPES.add(Slice.class);
diff --git a/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java b/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java
index a5072e96d..1733dd2f1 100755
--- a/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java
+++ b/src/test/java/org/springframework/data/repository/core/support/RepositoryFactorySupportUnitTests.java
@@ -366,14 +366,6 @@ class RepositoryFactorySupportUnitTests {
expect(prepareConvertingRepository(reference).findOneByFirstname("Foo"), reference);
}
- @Test // DATACMNS-714
- void wrapsExecutionResultIntoListenableFutureIfConfigured() throws Exception {
-
- var reference = new User();
-
- expect(prepareConvertingRepository(reference).findOneByLastname("Foo"), reference);
- }
-
@Test // DATACMNS-714
void wrapsExecutionResultIntoCompletableFutureWithEntityCollectionIfConfigured() throws Exception {
@@ -630,7 +622,6 @@ class RepositoryFactorySupportUnitTests {
}
- @SuppressWarnings("removal")
interface ConvertingRepository extends Repository