fixed overflow on it

This commit is contained in:
Adrian Cole 2010-05-21 10:27:45 -07:00
parent 5af9bdd34f
commit d1fd1600dd
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class BindS3ObjectToPayload implements Binder {
public void bindToRequest(HttpRequest request, Object payload) {
S3Object s3Object = (S3Object) payload;
checkNotNull(s3Object.getContentLength(), "contentLength");
checkArgument(s3Object.getContentLength() <= 5 * 1024 * 1024 * 1024,
checkArgument(s3Object.getContentLength() <= 5l * 1024 * 1024 * 1024,
"maximum size for put object is 5GB");
blobBinder.bindToRequest(request, object2Blob.apply(s3Object));