NumberFormatException fix
authorKrzysztof Majewski <krzysztof.majewski.km1@contractors.roche.com>
Tue, 22 Oct 2019 09:08:19 +0000 (11:08 +0200)
committerKrzysztof Majewski <krzysztof.majewski.km1@contractors.roche.com>
Wed, 23 Oct 2019 16:36:55 +0000 (18:36 +0200)
sdk/java-v2/src/main/java/org/arvados/client/logic/collection/FileToken.java

index 2f50502824c735cd4f3a354e78ebd4afbbef0644..3f83604f4d8f2439462def9152f6369d6bb614ad 100644 (file)
@@ -29,7 +29,7 @@ public class FileToken {
     private void splitFileTokenInfo(String fileTokenInfo) {
         String[] tokenPieces = fileTokenInfo.split(":");
         this.filePosition = Integer.parseInt(tokenPieces[0]);
-        this.fileSize = Integer.parseInt(tokenPieces[1]);
+        this.fileSize = Long.parseLong(tokenPieces[1]);
         this.fileName = tokenPieces[2].replace(Characters.SPACE, " ");
     }