@@ -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