> @@ -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,

Correct, the previous code enforced a maximum size.  Java 6 only has 
`HttpURLConnection.setFixedLengthStreamingMode(int)` while Java 7 and onward 
have `HttpURLConnection.setFixedLengthStreamingMode(long)` as well.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/426/files#r15618713

Reply via email to