8000 Use long rather than int for sizeRw and sizeRootFs (#2230) · docker-java/docker-java@84d7750 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84d7750

Browse files
authored
Use long rather than int for sizeRw and sizeRootFs (#2230)
Fixes #2237
1 parent fd5da16 commit 84d7750

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docker-java-api/src/main/java/com/github/dockerjava/api/command/InspectContainerResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ public class InspectContainerResponse extends DockerObject {
6161
private String id;
6262

6363
@JsonProperty("SizeRootFs")
64-
private Integer sizeRootFs;
64+
private Long sizeRootFs;
6565

6666
@JsonProperty("SizeRw")
67-
private Integer sizeRw;
67+
private Long sizeRw;
6868

6969
@JsonProperty("Image")
7070
private String imageId;
@@ -124,11 +124,11 @@ public String getId() {
124124
return id;
125125
}
126126

127-
public Integer getSizeRootFs() {
127+
public Long getSizeRootFs() {
128128
return sizeRootFs;
129129
}
130130

131-
public Integer getSizeRw() {
131+
public Long getSizeRw() {
132132
return sizeRw;
133133
}
134134

docker-java/src/test/java/com/github/dockerjava/cmd/InspectContainerCmdIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ public void inspectContainerWithSize() throws DockerException {
100100
// TODO check swarm
101101
if (isNotSwarm(dockerRule.getClient())) {
102102
assertNotNull(containerInfo.getSizeRootFs());
103-
assertTrue(containerInfo.getSizeRootFs().intValue() > 0);
103+
assertTrue(containerInfo.getSizeRootFs().longValue() > 0L);
104104
assertNotNull(containerInfo.getSizeRw());
105-
assertTrue(containerInfo.getSizeRw().intValue() == 0);
105+
assertTrue(containerInfo.getSizeRw().longValue() == 0L);
106106
}
107107
}
108108

0 commit comments

Comments
 (0)
0