From 3ed99ad74b461be5502da3c0bb3f1608294fe348 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 12 Mar 2017 16:49:08 -0700 Subject: [PATCH] Allow lastModified to be null Follow on to ec932321bde5662d8ecbef7cf5428a6017b07dd0 --- .../org/jclouds/s3/domain/ListMultipartUploadResponse.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apis/s3/src/main/java/org/jclouds/s3/domain/ListMultipartUploadResponse.java b/apis/s3/src/main/java/org/jclouds/s3/domain/ListMultipartUploadResponse.java index 8830317e80..58edc5663e 100644 --- a/apis/s3/src/main/java/org/jclouds/s3/domain/ListMultipartUploadResponse.java +++ b/apis/s3/src/main/java/org/jclouds/s3/domain/ListMultipartUploadResponse.java @@ -21,6 +21,8 @@ import static com.google.common.base.Preconditions.checkNotNull; import java.util.Date; +import org.jclouds.javax.annotation.Nullable; + import com.google.auto.value.AutoValue; import com.google.common.annotations.Beta; import org.jclouds.javax.annotation.Nullable; @@ -33,7 +35,7 @@ public abstract class ListMultipartUploadResponse { public abstract String eTag(); public abstract long size(); - public static ListMultipartUploadResponse create(int partNumber, Date lastModified, String eTag, long size) { + public static ListMultipartUploadResponse create(int partNumber, @Nullable Date lastModified, String eTag, long size) { checkArgument(partNumber > 0, "partNumber must be greater than zero, was: %s", partNumber); checkNotNull(eTag, "eTag"); if (lastModified != null) {