From: Gustavo Martin Morcuende Date: Sun, 11 Dec 2016 18:08:01 +0000 (+0100) Subject: Removing useless inner interface from Adapters X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=f471df8c7712b6b4c226d4a87c44d190c6e75816;p=JavaForFun Removing useless inner interface from Adapters --- 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);