Skip to content

Commit e74c194

Browse files
committed
Fixed Checkstyle errors
1 parent 40c4809 commit e74c194

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scribejava-httpclient-okhttp/src/main/java/com/github/scribejava/httpclient/okhttp/OAuthAsyncCompletionHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public void onResponse(Call call, okhttp3.Response okHttpResponse) throws IOExce
6262
null); // cannot return both body String and InputStream
6363

6464
@SuppressWarnings("unchecked")
65-
final T t = result = converter == null ? (T) response : converter.convert(response);
65+
final T t = converter == null ? (T) response : converter.convert(response);
66+
result = t;
6667
if (callback != null) {
6768
callback.onCompleted(t);
6869
}

scribejava-httpclient-okhttp/src/main/java/com/github/scribejava/httpclient/okhttp/OkHttpHttpClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public <T> Future<T> executeAsync(String userAgent, Map<String, String> headers,
4747
requestBuilder.get();
4848
break;
4949
case POST:
50-
String contentType = headers.containsKey(AbstractRequest.CONTENT_TYPE) ?
51-
headers.get(AbstractRequest.CONTENT_TYPE) : DEFAULT_CONTENT_TYPE;
50+
final String contentType = headers.containsKey(AbstractRequest.CONTENT_TYPE) ?
51+
headers.get(AbstractRequest.CONTENT_TYPE) : DEFAULT_CONTENT_TYPE;
5252

5353
requestBuilder.post(RequestBody.create(MediaType.parse(contentType), bodyContents));
5454
break;

0 commit comments

Comments
 (0)