Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
#14 Renaming of vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
axelerod committed Oct 5, 2015
1 parent 49be09d commit 87fa122
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ private ApiResponse<UploadFileData> uploadFile(final FileUploadParameterBuilder
return apiResponse;
}

private <T extends Data> ApiResponse<T> getResponse(final HttpRequestBase httpRequest, final TypeToken<ApiResponseWrapper<T>> typeToken) throws ApiException
private <T extends Data> ApiResponse<T> getResponse(final HttpRequestBase executeRequest, final TypeToken<ApiResponseWrapper<T>> typeToken) throws ApiException
{
final StringResponse response = getStringResponse(httpRequest);
final StringResponse response = getStringResponse(executeRequest);

return parseApiResponse(response.getContents(), typeToken);
}
Expand All @@ -275,10 +275,10 @@ private StringResponse getStringResponse(final HttpRequestBase httpRequest) thro

String contents = stringResponse.getContents();
logger.error(String.format("Non-successful response: \n contents: %s", contents));
throw createApiException(contents);
throw newApiException(contents);
}

private ApiException createApiException(final String contents)
private ApiException newApiException(final String contents)
{
ApiResponse<EmptyResponse> emptyResponseApiResponse = parseApiResponse(contents, new TypeToken<ApiResponseWrapper<EmptyResponse>>() {});

Expand Down

0 comments on commit 87fa122

Please sign in to comment.