Repository: jclouds Updated Branches: refs/heads/master e153322ee -> 7cbc16d99
Address false positive int overflow error Found via error-prone 2.1.0 Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/7cbc16d9 Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/7cbc16d9 Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/7cbc16d9 Branch: refs/heads/master Commit: 7cbc16d99cd3f5d98941070858fe6909b4d1bee1 Parents: e153322 Author: Andrew Gaul <[email protected]> Authored: Mon Aug 21 18:27:16 2017 -0700 Committer: Andrew Gaul <[email protected]> Committed: Mon Aug 21 18:29:15 2017 -0700 ---------------------------------------------------------------------- .../http/BaseHttpCommandExecutorServiceIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/7cbc16d9/core/src/test/java/org/jclouds/http/BaseHttpCommandExecutorServiceIntegrationTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/org/jclouds/http/BaseHttpCommandExecutorServiceIntegrationTest.java b/core/src/test/java/org/jclouds/http/BaseHttpCommandExecutorServiceIntegrationTest.java index 4f5892c..ace2427 100644 --- a/core/src/test/java/org/jclouds/http/BaseHttpCommandExecutorServiceIntegrationTest.java +++ b/core/src/test/java/org/jclouds/http/BaseHttpCommandExecutorServiceIntegrationTest.java @@ -266,7 +266,7 @@ public abstract class BaseHttpCommandExecutorServiceIntegrationTest extends Base try { f = File.createTempFile("jclouds", "tmp"); - long length = (new Random().nextInt(32) + 1) * 1024 * 1024; + long length = (new Random().nextInt(32) + 1) * 1024L * 1024L; TestUtils.randomByteSource().slice(0, length).copyTo(Files.asByteSink(f)); ByteSource byteSource = asByteSource(f);
