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:
Erich Duda 2016-10-26 20:53:45 +02:00 committed by Ignasi Barrera
parent fc91f64290
commit dff16876ee
1 changed files with 3 additions and 3 deletions

View File

@ -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));
}