Deprecate support for RxJava 2.

Closes #2470
This commit is contained in:
Mark Paluch
2021-09-27 14:04:36 +02:00
parent a11340b85e
commit 82fd3cac27
3 changed files with 13 additions and 2 deletions

View File

@@ -33,8 +33,10 @@ import org.springframework.data.repository.Repository;
* @see Single
* @see Flowable
* @see Completable
* @deprecated since 2.6, use {@link RxJava3CrudRepository RxJava 3} instead. To be removed with Spring Data 3.0.
*/
@NoRepositoryBean
@Deprecated
public interface RxJava2CrudRepository<T, ID> extends Repository<T, ID> {
/**

View File

@@ -29,8 +29,10 @@ import org.springframework.data.repository.NoRepositoryBean;
* @see Sort
* @see Flowable
* @see RxJava2CrudRepository
* @deprecated since 2.6, use {@link RxJava3SortingRepository RxJava 3} instead. To be removed with Spring Data 3.0.
*/
@NoRepositoryBean
@Deprecated
public interface RxJava2SortingRepository<T, ID> extends RxJava2CrudRepository<T, ID> {
/**

View File

@@ -73,6 +73,7 @@ public abstract class ReactiveWrappers {
&& ClassUtils.isPresent("rx.RxReactiveStreams",
ReactiveWrappers.class.getClassLoader());
@Deprecated
private static final boolean RXJAVA2_PRESENT = ClassUtils.isPresent("io.reactivex.Flowable",
ReactiveWrappers.class.getClassLoader());
@@ -94,10 +95,16 @@ public abstract class ReactiveWrappers {
PROJECT_REACTOR,
/**
* @deprecated since 2.4, use RxJava 2 or 3 instead.
* @deprecated since 2.4, use RxJava 3 instead. To be removed with Spring Data 3.0.
*/
@Deprecated
RXJAVA1, RXJAVA2, RXJAVA3, KOTLIN_COROUTINES;
RXJAVA1,
/**
* @deprecated since 2.6, use RxJava 3 instead. To be removed with Spring Data 3.0.
*/
@Deprecated
RXJAVA2, RXJAVA3, KOTLIN_COROUTINES;
}
/**