NumberFormatException fix
[arvados.git] / 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, " ");
     }