From 2c7a1003a5d8f7fbb3548bed02d9ad1a69280166 Mon Sep 17 00:00:00 2001 From: Jianghao Lu Date: Sat, 27 Aug 2016 15:21:49 -0700 Subject: [PATCH] Fix checkstyle errors --- .../com/microsoft/azure/AzureServiceCall.java | 15 ++++++++++++--- .../main/java/com/microsoft/rest/ServiceCall.java | 2 -- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/azure-client-runtime/src/main/java/com/microsoft/azure/AzureServiceCall.java b/azure-client-runtime/src/main/java/com/microsoft/azure/AzureServiceCall.java index 3d3d9f0399cd6..6fb08726d1cb3 100644 --- a/azure-client-runtime/src/main/java/com/microsoft/azure/AzureServiceCall.java +++ b/azure-client-runtime/src/main/java/com/microsoft/azure/AzureServiceCall.java @@ -9,14 +9,13 @@ import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceResponse; - -import java.util.List; - import com.microsoft.rest.ServiceResponseWithHeaders; import rx.Observable; import rx.Subscriber; import rx.functions.Func1; +import java.util.List; + /** * An instance of this class provides access to the underlying REST call invocation. * This class wraps around the Retrofit Call object and allows updates to it in the @@ -46,6 +45,16 @@ public static ServiceCall> create(Observable return serviceCall; } + /** + * Creates a ServiceCall from a paging operation that returns a header response. + * + * @param first the observable to the first page + * @param next the observable to poll subsequent pages + * @param callback the client-side callback + * @param the element type + * @param the header object type + * @return the future based ServiceCall + */ public static ServiceCall> createWithHeaders(Observable, V>> first, final Func1, V>>> next, final ListOperationCallback callback) { final AzureServiceCall> serviceCall = new AzureServiceCall<>(); final PagingSubscriber subscriber = new PagingSubscriber<>(serviceCall, new Func1>>>() { diff --git a/client-runtime/src/main/java/com/microsoft/rest/ServiceCall.java b/client-runtime/src/main/java/com/microsoft/rest/ServiceCall.java index 39e6c05d08b95..be18dd23a8064 100644 --- a/client-runtime/src/main/java/com/microsoft/rest/ServiceCall.java +++ b/client-runtime/src/main/java/com/microsoft/rest/ServiceCall.java @@ -9,10 +9,8 @@ import com.google.common.util.concurrent.AbstractFuture; import rx.Observable; -import rx.Scheduler; import rx.Subscription; import rx.functions.Action1; -import rx.functions.Func1; /** * An instance of this class provides access to the underlying REST call invocation.