Skip to content

Commit

Permalink
Fix ZSTD
Browse files Browse the repository at this point in the history
  • Loading branch information
congminh1254 committed Feb 19, 2025
1 parent 0496bea commit db72c10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/intTest/java/com/box/sdk/BoxFileIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void uploadAndDownloadFileSucceeds() throws IOException {
}

@Test
public void uploadAndDownloadFileUseZstdSucceeds() throws IOException {
public void downloadFileUseZstdSucceeds() throws IOException {
BoxAPIConnection api = jwtApiForServiceAccount();
api.setUseZstdCompression(true);

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/box/sdk/BoxAPIConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public class BoxAPIConnection {
private int maxRetryAttempts;
private int connectTimeout;
private int readTimeout;
private Boolean useZstdCompression;
private boolean useZstdCompression;
private final List<BoxAPIConnectionListener> listeners;
private RequestInterceptor interceptor;
private final Map<String, String> customHeaders;
Expand Down Expand Up @@ -666,15 +666,15 @@ public void setConnectTimeout(int connectTimeout) {
* Gets if request use zstd encoding when possible
* @return true if request use zstd encoding when possible
*/
public Boolean getUseZstdCompression() {
public boolean getUseZstdCompression() {
return this.useZstdCompression;
}

/*
* Sets if request use zstd encoding when possible
* @param useZstdCompression true if request use zstd encoding when possible
*/
public void setUseZstdCompression(Boolean useZstdCompression) {
public void setUseZstdCompression(boolean useZstdCompression) {
this.useZstdCompression = useZstdCompression;
buildHttpClients();
}
Expand Down

0 comments on commit db72c10

Please sign in to comment.