nacx approved this pull request.
+1 Thanks @andrewgaul!
> +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);
[minor] Use `checkArgument(size >= 0, "size must be positive, was: %s",
size);`, to avoid the implicit stringbuilder if the precondition is met.
--
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#pullrequestreview-22459974