mirror of https://github.com/apache/jclouds.git
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:
parent
fb186d82de
commit
bf7d864c41
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue