Skip to content

Commit a38a70b

Browse files
author
Stephen Cobbe
committed
Some cleanup.
1 parent 9f2b530 commit a38a70b

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

src/main/java/com/dropbox/core/DbxRequestUtil.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.dropbox.core;
22

3-
import com.fasterxml.jackson.core.JsonProcessingException;
43
import java.io.IOException;
54
import java.io.UnsupportedEncodingException;
65
import java.net.URI;
@@ -13,6 +12,8 @@
1312
import java.util.Map;
1413
import java.util.Random;
1514

15+
import com.fasterxml.jackson.core.JsonProcessingException;
16+
1617
import com.dropbox.core.http.HttpRequestor;
1718
import com.dropbox.core.json.JsonReadException;
1819
import com.dropbox.core.json.JsonReader;
@@ -104,8 +105,6 @@ public static List<HttpRequestor.Header> addAuthHeader(/*@Nullable*/List<HttpReq
104105
if (headers == null) headers = new ArrayList<HttpRequestor.Header>();
105106

106107
headers.add(new HttpRequestor.Header("Authorization", "Bearer " + accessToken));
107-
String pathRootMsg = "lalallala";
108-
headers.add(new HttpRequestor.Header("X-Dropbox-Path-Root", pathRootMsg));
109108
return headers;
110109
}
111110

src/main/java/com/dropbox/core/v2/DbxAppClientV2.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public DbxAppClientV2(DbxRequestConfig requestConfig, String key, String secret,
5656
* @param secret Dropbox app secret (e.g. consumer secret in OAuth)
5757
* @param host Dropbox hosts to send requests to (used for mocking and
5858
* testing)
59-
* @param userId The user ID of the current Dropbox account. Used for multi-Dropbox account use-case.
59+
* @param userId The user ID of the current Dropbox account. Used for
60+
* multi-Dropbox account use-case.
6061
*/
6162
public DbxAppClientV2(DbxRequestConfig requestConfig, String key, String secret, DbxHost host, String userId) {
6263
super(new DbxAppRawClientV2(requestConfig, key, secret, host, userId));

src/main/java/com/dropbox/core/v2/DbxClientV2.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public DbxClientV2(DbxRequestConfig requestConfig, String accessToken) {
3939
* @param accessToken OAuth 2 access token (that you got from Dropbox) that
4040
* gives your app the ability to make Dropbox API calls. Typically
4141
* acquired through {@link com.dropbox.core.DbxWebAuth}
42-
* @param userId The user ID of the current Dropbox account. Used for multi-Dropbox account use-case.
42+
* @param userId The user ID of the current Dropbox account. Used for
43+
* multi-Dropbox account use-case.
4344
*/
4445
public DbxClientV2(DbxRequestConfig requestConfig, String accessToken, String userId) {
4546
this(requestConfig, accessToken, DbxHost.DEFAULT, userId);
@@ -72,7 +73,8 @@ public DbxClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHost h
7273
* acquired through {@link com.dropbox.core.DbxWebAuth}
7374
* @param host Dropbox hosts to send requests to (used for mocking and
7475
* testing)
75-
* @param userId The user ID of the current Dropbox account. Used for multi-Dropbox account use-case.
76+
* @param userId The user ID of the current Dropbox account. Used for multi-Dropbox
77+
* account use-case.
7678
*/
7779
public DbxClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHost host, String userId) {
7880
super(new DbxUserRawClientV2(requestConfig, accessToken, host, userId));

src/main/java/com/dropbox/core/v2/DbxTeamClientV2.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public DbxTeamClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHo
6565
* acquired through {@link com.dropbox.core.DbxWebAuth}
6666
* @param host Dropbox hosts to send requests to (used for mocking and
6767
* testing)
68-
* @param userId The user ID of the current Dropbox account. Used for multi-Dropbox account use-case.
68+
* @param userId The user ID of the current Dropbox account. Used for
69+
* multi-Dropbox account use-case.
6970
*/
7071
public DbxTeamClientV2(DbxRequestConfig requestConfig, String accessToken, DbxHost host, String userId) {
7172
super(new DbxTeamRawClientV2(requestConfig, host, accessToken, userId, null));
@@ -95,8 +96,8 @@ public DbxClientV2 asMember(String memberId) {
9596
_client.getRequestConfig(),
9697
_client.getHost(),
9798
accessToken,
98-
_client.getUserId(),
99-
memberId
99+
_client.getUserId(),
100+
memberId
100101
);
101102
return new DbxClientV2(asMemberClient);
102103
}

0 commit comments

Comments
 (0)