File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 17
17
package org .springframework .test .web .servlet .samples .standalone ;
18
18
19
19
import java .io .StringWriter ;
20
- import java .nio .charset .Charset ;
21
- import java .nio .charset .StandardCharsets ;
22
20
import java .util .Collection ;
23
21
import java .util .concurrent .Callable ;
24
22
import java .util .concurrent .CompletableFuture ;
@@ -200,14 +198,11 @@ public void printAsyncResult() throws Exception {
200
198
201
199
@ RestController
202
200
@ RequestMapping (path = "/{id}" , produces = "application/json" )
203
- @ SuppressWarnings ("unused" )
204
201
private static class AsyncController {
205
202
206
- private final Collection <DeferredResult <Person >> deferredResults =
207
- new CopyOnWriteArrayList <>();
203
+ private final Collection <DeferredResult <Person >> deferredResults = new CopyOnWriteArrayList <>();
208
204
209
- private final Collection <ListenableFutureTask <Person >> futureTasks =
210
- new CopyOnWriteArrayList <>();
205
+ private final Collection <ListenableFutureTask <Person >> futureTasks = new CopyOnWriteArrayList <>();
211
206
212
207
213
208
@ RequestMapping (params = "callable" )
You can’t perform that action at this time.
0 commit comments