andrewgaul commented on this pull request.
> +import com.google.auto.value.AutoValue; +import com.google.common.annotations.Beta; + +@AutoValue +@Beta +public abstract class ListMultipartUploadResponse { + public abstract int partNumber(); + public abstract Date lastModified(); + public abstract String eTag(); + public abstract long size(); + + public static ListMultipartUploadResponse create(int partNumber, Date lastModified, String eTag, long size) { + checkArgument(partNumber > 0, "partNumber must be greater than zero, was: " + partNumber); + checkNotNull(eTag, "eTag"); + lastModified = (Date) checkNotNull(lastModified, "lastModified").clone(); + checkArgument(size >= 0, "size must be positive, was: " + size); Done twice. Some versions of error-prone warn about this but the check was reparented into the Google-only Klippy. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1063#discussion_r104576117