mirror of https://github.com/apache/jclouds.git
Change types of variables in docker ImageSummary
The int type is not sufficient for size and virtualSize parameters, if the image is bigger than 2gb. This fixes https://issues.apache.org/jira/browse/JCLOUDS-1190
This commit is contained in:
parent
fc91f64290
commit
dff16876ee
|
@ -33,9 +33,9 @@ public abstract class ImageSummary {
|
|||
|
||||
public abstract String parentId();
|
||||
|
||||
public abstract int size();
|
||||
public abstract long size();
|
||||
|
||||
public abstract int virtualSize();
|
||||
public abstract long virtualSize();
|
||||
|
||||
public abstract List<String> repoTags();
|
||||
|
||||
|
@ -43,7 +43,7 @@ public abstract class ImageSummary {
|
|||
}
|
||||
|
||||
@SerializedNames({"Id", "Created", "ParentId", "Size", "VirtualSize", "RepoTags"})
|
||||
public static ImageSummary create(String id, long created, String parentId, int size, int virtualSize,
|
||||
public static ImageSummary create(String id, long created, String parentId, long size, long virtualSize,
|
||||
List<String> repoTags) {
|
||||
return new AutoValue_ImageSummary(id, created, parentId, size, virtualSize, copyOf(repoTags));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue