From 799f0dfc7496849e3426706cfc2163379be80918 Mon Sep 17 00:00:00 2001 From: Bartek Nowotarski Date: Mon, 21 Mar 2016 17:45:36 +0100 Subject: [PATCH] Fix OffersRequestBuilder.execute --- .../java/org/stellar/sdk/requests/OffersRequestBuilder.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/stellar/sdk/requests/OffersRequestBuilder.java b/src/main/java/org/stellar/sdk/requests/OffersRequestBuilder.java index 133780aa9..6c19b2d80 100644 --- a/src/main/java/org/stellar/sdk/requests/OffersRequestBuilder.java +++ b/src/main/java/org/stellar/sdk/requests/OffersRequestBuilder.java @@ -6,7 +6,6 @@ import org.stellar.sdk.KeyPair; import org.stellar.sdk.responses.OfferResponse; import org.stellar.sdk.responses.Page; -import org.stellar.sdk.responses.TransactionResponse; import java.io.IOException; import java.net.URI; @@ -40,14 +39,14 @@ public OffersRequestBuilder forAccount(KeyPair account) { * @throws IOException */ public static Page execute(URI uri) throws IOException, TooManyRequestsException { - TypeToken type = new TypeToken>() {}; + TypeToken type = new TypeToken>() {}; ResponseHandler> responseHandler = new ResponseHandler>(type); return (Page) Request.Get(uri).execute().handleResponse(responseHandler); } /** * Build and execute request. - * @return {@link Page} of {@link TransactionResponse} + * @return {@link Page} of {@link OfferResponse} * @throws TooManyRequestsException when too many requests were sent to the Horizon server. * @throws IOException */