Allow null ETag in MultipartPart

Some storage backends, notably filesystem provider using either
Mac OS X or NFS, do not support extended attributes and cannot store
the ETag.  References andrewgaul/s3proxy#135.
This commit is contained in:
Andrew Gaul 2016-06-01 12:47:02 -07:00
parent fb186d82de
commit bf7d864c41
1 changed files with 4 additions and 2 deletions

View File

@ -17,15 +17,17 @@
package org.jclouds.blobstore.domain; package org.jclouds.blobstore.domain;
import org.jclouds.javax.annotation.Nullable;
import com.google.auto.value.AutoValue; import com.google.auto.value.AutoValue;
@AutoValue @AutoValue
public abstract class MultipartPart { public abstract class MultipartPart {
public abstract int partNumber(); public abstract int partNumber();
public abstract long partSize(); public abstract long partSize();
public abstract String partETag(); @Nullable public abstract String partETag();
public static MultipartPart create(int partNumber, long partSize, String partETag) { public static MultipartPart create(int partNumber, long partSize, @Nullable String partETag) {
return new AutoValue_MultipartPart(partNumber, partSize, partETag); return new AutoValue_MultipartPart(partNumber, partSize, partETag);
} }
} }