Skip to content

Commit de4b65a

Browse files
committed
Suppress warnings in RequestMappingMessageConversionIntegrationTests
1 parent 6fa1095 commit de4b65a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingMessageConversionIntegrationTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ public Completable createWithSingle(@RequestBody Single<Person> single) {
613613
}
614614

615615
@PostMapping("/rxjava2-single")
616+
@SuppressWarnings("deprecation")
616617
public io.reactivex.Completable createWithRxJava2Single(@RequestBody io.reactivex.Single<Person> single) {
617618
return single.map(persons::add).toCompletable();
618619
}
@@ -628,13 +629,15 @@ public Observable<Void> createWithObservable(@RequestBody Observable<Person> obs
628629
}
629630

630631
@PostMapping("/rxjava2-observable")
632+
@SuppressWarnings("deprecation")
631633
public io.reactivex.Completable createWithRxJava2Observable(
632634
@RequestBody io.reactivex.Observable<Person> observable) {
633635

634636
return observable.toList().doOnSuccess(persons::addAll).toCompletable();
635637
}
636638

637639
@PostMapping("/flowable")
640+
@SuppressWarnings("deprecation")
638641
public io.reactivex.Completable createWithFlowable(@RequestBody Flowable<Person> flowable) {
639642
return flowable.toList().doOnSuccess(persons::addAll).toCompletable();
640643
}

0 commit comments

Comments
 (0)