> @@ -179,15 +179,10 @@ protected HttpURLConnection convert(HttpRequest
> request) throws IOException, Int
> connection.setChunkedStreamingMode(8196);
> writePayloadToConnection(payload, "streaming", connection);
> } else {
> - Long length = checkNotNull(md.getContentLength(),
> "payload.getContentLength");
> - // TODO: remove check after moving to JDK 7.
> - checkArgument(length <= Integer.MAX_VALUE,
I think the idea is that, for Java 6, length must be <= 2147483647, i.e. 2Gb.
`checkArgument` verifies that that condition is true, i.e. will only throw an
exception if lengh > 2Gb.
That seems correct?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/426/files#r15610064