Clean up warnings and polishing
This commit is contained in:
@@ -61,7 +61,6 @@ import org.springframework.messaging.simp.annotation.SubscribeMapping;
|
||||
import org.springframework.messaging.support.MessageBuilder;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.util.AntPathMatcher;
|
||||
import org.springframework.util.concurrent.ListenableFutureTask;
|
||||
import org.springframework.validation.Errors;
|
||||
import org.springframework.validation.Validator;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@@ -538,19 +537,19 @@ public class SimpAnnotationMethodMessageHandlerTests {
|
||||
@SuppressWarnings("deprecation")
|
||||
private static class ListenableFutureController {
|
||||
|
||||
private ListenableFutureTask<String> future;
|
||||
private org.springframework.util.concurrent.ListenableFutureTask<String> future;
|
||||
|
||||
private boolean exceptionCaught = false;
|
||||
|
||||
@MessageMapping("success")
|
||||
public ListenableFutureTask<String> handleListenableFuture() {
|
||||
this.future = new ListenableFutureTask<>(() -> "foo");
|
||||
public org.springframework.util.concurrent.ListenableFutureTask<String> handleListenableFuture() {
|
||||
this.future = new org.springframework.util.concurrent.ListenableFutureTask<>(() -> "foo");
|
||||
return this.future;
|
||||
}
|
||||
|
||||
@MessageMapping("failure")
|
||||
public ListenableFutureTask<String> handleListenableFutureException() {
|
||||
this.future = new ListenableFutureTask<>(() -> {
|
||||
public org.springframework.util.concurrent.ListenableFutureTask<String> handleListenableFutureException() {
|
||||
this.future = new org.springframework.util.concurrent.ListenableFutureTask<>(() -> {
|
||||
throw new IllegalStateException();
|
||||
});
|
||||
return this.future;
|
||||
|
||||
Reference in New Issue
Block a user