Skip to content

Commit db72c10

Browse files
committed
Fix ZSTD
1 parent 0496bea commit db72c10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/intTest/java/com/box/sdk/BoxFileIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public void uploadAndDownloadFileSucceeds() throws IOException {
228228
}
229229

230230
@Test
231-
public void uploadAndDownloadFileUseZstdSucceeds() throws IOException {
231+
public void downloadFileUseZstdSucceeds() throws IOException {
232232
BoxAPIConnection api = jwtApiForServiceAccount();
233233
api.setUseZstdCompression(true);
234234

src/main/java/com/box/sdk/BoxAPIConnection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public class BoxAPIConnection {
122122
private int maxRetryAttempts;
123123
private int connectTimeout;
124124
private int readTimeout;
125-
private Boolean useZstdCompression;
125+
private boolean useZstdCompression;
126126
private final List<BoxAPIConnectionListener> listeners;
127127
private RequestInterceptor interceptor;
128128
private final Map<String, String> customHeaders;
@@ -666,15 +666,15 @@ public void setConnectTimeout(int connectTimeout) {
666666
* Gets if request use zstd encoding when possible
667667
* @return true if request use zstd encoding when possible
668668
*/
669-
public Boolean getUseZstdCompression() {
669+
public boolean getUseZstdCompression() {
670670
return this.useZstdCompression;
671671
}
672672

673673
/*
674674
* Sets if request use zstd encoding when possible
675675
* @param useZstdCompression true if request use zstd encoding when possible
676676
*/
677-
public void setUseZstdCompression(Boolean useZstdCompression) {
677+
public void setUseZstdCompression(boolean useZstdCompression) {
678678
this.useZstdCompression = useZstdCompression;
679679
buildHttpClients();
680680
}

0 commit comments

Comments
 (0)