| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ public class InstagramAccessTokenErrorResponse extends OAuthResponseException { | |||
| 19 | 19 | private final String errorType; | |
| 20 | 20 | private final int code; | |
| 21 | 21 | private final String errorMessage; | |
| 22 | - private final Response response; | ||
| 22 | + private final transient Response response; | ||
| 23 | 23 | ||
| 24 | 24 | public InstagramAccessTokenErrorResponse(String errorType, int code, String errorMessage, Response response) | |
| 25 | 25 | throws IOException { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,6 +72,9 @@ public Future<OAuth2AccessToken> getLongLivedAccessToken(OAuth2AccessToken acces | |||
| 72 | 72 | * | |
| 73 | 73 | * @param accessToken short-lived access token | |
| 74 | 74 | * @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 | ||
| 75 | 78 | */ | |
| 76 | 79 | public OAuth2AccessToken getLongLivedAccessToken(OAuth2AccessToken accessToken) | |
| 77 | 80 | throws InterruptedException, ExecutionException, IOException { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,8 @@ | |||
| 8 | 8 | /** | |
| 9 | 9 | * Fake Future. Just to have Future API for the default JDK Http client. It's NOT Async in any way. Just facade.<br> | |
| 10 | 10 | * That's it. Sync execution with Async methods. This class does NOT provide any async executions. | |
| 11 | + * | ||
| 12 | + * @param <V> | ||
| 11 | 13 | */ | |
| 12 | 14 | public class JDKHttpFuture<V> implements Future<V> { | |
| 13 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ public class OAuthResponseException extends OAuthException { | |||
| 8 | 8 | ||
| 9 | 9 | private static final long serialVersionUID = 1309424849700276816L; | |
| 10 | 10 | ||
| 11 | - private final Response response; | ||
| 11 | + private final transient Response response; | ||
| 12 | 12 | ||
| 13 | 13 | public OAuthResponseException(Response rawResponse) throws IOException { | |
| 14 | 14 | super(rawResponse.getBody()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments