From f471df8c7712b6b4c226d4a87c44d190c6e75816 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 11 Dec 2016 19:08:01 +0100 Subject: [PATCH] Removing useless inner interface from Adapters --- .../rest/controller/adapters/CompletableFutureAdapter.java | 6 ------ .../spring/webservices/rest/controller/adapters/RxJavaAdapter.java | 6 ------ 2 files changed, 12 deletions(-) diff --git a/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/CompletableFutureAdapter.java b/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/CompletableFutureAdapter.java index a9b4337..c451bfb 100644 --- a/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/CompletableFutureAdapter.java +++ b/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/CompletableFutureAdapter.java @@ -12,13 +12,7 @@ public class CompletableFutureAdapter { // With no value, we depend on the Tomcat/Jboss/Jetty/etc timeout value for asynchronous requests. // Spring will answer after 60 secs with an empty response (by default) and HTTP 503 status (by default) when timeout. private static final long ASYNC_TIMEOUT = 60000; /* milliseconds */ - - @FunctionalInterface - public interface DeferredCall { - - public T doCall(); - } public static final DeferredResult deferredAdapter(CompletableFuture completableFuture) { diff --git a/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/RxJavaAdapter.java b/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/RxJavaAdapter.java index 8d7446f..04ee276 100644 --- a/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/RxJavaAdapter.java +++ b/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/RxJavaAdapter.java @@ -15,12 +15,6 @@ public class RxJavaAdapter { private static final long ASYNC_TIMEOUT = 60000; /* milliseconds */ - @FunctionalInterface - public interface DeferredCall { - - public T doCall(); - } - public static final DeferredResult deferredAdapter(Observable observable) { DeferredResult deferredResult = new DeferredResult<>(ASYNC_TIMEOUT); -- 2.1.4