Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit a5e1c92

Browse files
committed
Merge branch 'bugfix/fileinforesponse-size-type' into feature/large-file-support
2 parents 259a11c + 9d0fe68 commit a5e1c92

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/synapticloop/b2/response/B2FileInfoResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class B2FileInfoResponse extends BaseB2Response {
3737

3838
private final Map<String, String> fileInfo;
3939
private final Action action;
40-
private final Integer size;
40+
private final Long size;
4141
private final Long uploadTimestamp;
4242

4343
/**
@@ -76,7 +76,7 @@ public B2FileInfoResponse(final JSONObject response) throws B2ApiException {
7676
this.action = Action.upload;
7777
}
7878

79-
this.size = this.readInt(B2ResponseProperties.KEY_SIZE);
79+
this.size = this.readLong(B2ResponseProperties.KEY_SIZE);
8080
this.uploadTimestamp = this.readLong(B2ResponseProperties.KEY_UPLOAD_TIMESTAMP);
8181

8282
this.warnOnMissedKeys();
@@ -101,7 +101,7 @@ public B2FileInfoResponse(final JSONObject response) throws B2ApiException {
101101
*
102102
* @return the length of content for this file
103103
*/
104-
public Long getContentLength() { return this.contentLength; }
104+
public long getContentLength() { return this.contentLength; }
105105

106106
/**
107107
* @return the MIME type of the file
@@ -135,7 +135,7 @@ public B2FileInfoResponse(final JSONObject response) throws B2ApiException {
135135
/**
136136
* @return The number of bytes in the file.
137137
*/
138-
public Integer getSize() { return this.size; }
138+
public Long getSize() { return this.size; }
139139

140140
/**
141141
* Return the timestamp that the file was uploaded

0 commit comments

Comments
 (0)