Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "acae1d5", "specHash": "f8e0d99", "version": "5.6.0" }
{ "engineHash": "51c2138", "specHash": "f8e0d99", "version": "5.6.0" }
5 changes: 3 additions & 2 deletions docs/sdkgen/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ browser or web view) in order to obtain an auth code.
<!-- sample get_authorize -->

```java
BoxOAuth oauth = new OAuthConfig("CLIENT_ID", "CLIENT_SECRET");
String authorizationUrl = auoauthth.getAuthorizeUrl();
OAuthConfig oauthConfig = new OAuthConfig("CLIENT_ID", "CLIENT_SECRET");
BoxOAuth oauth = new BoxOAuth(oauthConfig);
String authorizationUrl = oauth.getAuthorizeUrl();
```

After a user logs in and grants your application access to their Box account,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ public FetchResponse fetch(FetchOptions options) {
exceptionThrown = e;
numberOfRetriesOnException++;
attemptForRetry = numberOfRetriesOnException;
fetchResponse = new FetchResponse.Builder(0, new TreeMap<>()).build();
rawResponseBody = null;
if (response != null) {
response.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,10 @@ public FetchResponse fetch(FetchOptions options) {
exceptionThrown = e;
numberOfRetriesOnException++;
attemptForRetry = numberOfRetriesOnException;
fetchResponse = new FetchResponse.Builder(0, new TreeMap<>()).build();
if (response != null) {
response.close();
}

fetchResponse =
new FetchResponse.Builder(0, new TreeMap<>(String.CASE_INSENSITIVE_ORDER)).build();
}

shouldRetry =
Expand Down
Loading