Skip to content

Commit 083b5f3

Browse files
committed
mark Response as transient in Serializable classes and small fixes in javadocs
1 parent 1fc8d4c commit 083b5f3

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

scribejava-apis/src/main/java/com/github/scribejava/apis/instagram/InstagramAccessTokenErrorResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class InstagramAccessTokenErrorResponse extends OAuthResponseException {
1919
private final String errorType;
2020
private final int code;
2121
private final String errorMessage;
22-
private final Response response;
22+
private final transient Response response;
2323

2424
public InstagramAccessTokenErrorResponse(String errorType, int code, String errorMessage, Response response)
2525
throws IOException {

scribejava-apis/src/main/java/com/github/scribejava/apis/instagram/InstagramService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public Future<OAuth2AccessToken> getLongLivedAccessToken(OAuth2AccessToken acces
7272
*
7373
* @param accessToken short-lived access token
7474
* @return long-lived access token with filled expireIn and refreshToken
75+
* @throws java.lang.InterruptedException
76+
* @throws java.util.concurrent.ExecutionException
77+
* @throws java.io.IOException
7578
*/
7679
public OAuth2AccessToken getLongLivedAccessToken(OAuth2AccessToken accessToken)
7780
throws InterruptedException, ExecutionException, IOException {

scribejava-core/src/main/java/com/github/scribejava/core/httpclient/jdk/JDKHttpFuture.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/**
99
* Fake Future. Just to have Future API for the default JDK Http client. It's NOT Async in any way. Just facade.<br>
1010
* That's it. Sync execution with Async methods. This class does NOT provide any async executions.
11+
*
12+
* @param <V>
1113
*/
1214
public class JDKHttpFuture<V> implements Future<V> {
1315

scribejava-core/src/main/java/com/github/scribejava/core/model/OAuthResponseException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class OAuthResponseException extends OAuthException {
88

99
private static final long serialVersionUID = 1309424849700276816L;
1010

11-
private final Response response;
11+
private final transient Response response;
1212

1313
public OAuthResponseException(Response rawResponse) throws IOException {
1414
super(rawResponse.getBody());

0 commit comments

Comments
 (0)