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

Commit 9d0fe68

Browse files
committed
Fix type of size field to be long.
1 parent 4505ea0 commit 9d0fe68

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 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 int 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();
@@ -135,7 +135,7 @@ public B2FileInfoResponse(final JSONObject response) throws B2ApiException {
135135
/**
136136
* @return The number of bytes in the file.
137137
*/
138-
public int 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)