(Re)suppress deprecation warnings
See gh-33780
This commit is contained in:
@@ -194,7 +194,7 @@ class AsyncTests {
|
||||
}
|
||||
|
||||
@GetMapping(params = "listenableFuture")
|
||||
@SuppressWarnings("deprecation")
|
||||
@SuppressWarnings({ "deprecation", "removal" })
|
||||
org.springframework.util.concurrent.ListenableFuture<Person> getListenableFuture() {
|
||||
org.springframework.util.concurrent.ListenableFutureTask<Person> futureTask =
|
||||
new org.springframework.util.concurrent.ListenableFutureTask<>(() -> new Person("Joe"));
|
||||
|
||||
@@ -334,7 +334,7 @@ class AsyncTests {
|
||||
}
|
||||
|
||||
@RequestMapping(params = "listenableFuture")
|
||||
@SuppressWarnings("deprecation")
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
org.springframework.util.concurrent.ListenableFuture<Person> getListenableFuture() {
|
||||
org.springframework.util.concurrent.ListenableFutureTask<Person> futureTask =
|
||||
new org.springframework.util.concurrent.ListenableFutureTask<>(() -> new Person("Joe"));
|
||||
|
||||
Reference in New Issue
Block a user