From: Krzysztof Majewski Date: Tue, 22 Oct 2019 09:08:19 +0000 (+0200) Subject: NumberFormatException fix X-Git-Tag: 2.0.0~155^2~1^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/3e5a4f9f0c4ece9af648a84a5274114ebe922e06 NumberFormatException fix --- diff --git a/sdk/java-v2/src/main/java/org/arvados/client/logic/collection/FileToken.java b/sdk/java-v2/src/main/java/org/arvados/client/logic/collection/FileToken.java index 2f50502824..3f83604f4d 100644 --- a/sdk/java-v2/src/main/java/org/arvados/client/logic/collection/FileToken.java +++ b/sdk/java-v2/src/main/java/org/arvados/client/logic/collection/FileToken.java @@ -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, " "); }