Skip to content

Commit b896758

Browse files
committed
change version type to long since swagger api type is uint64, ref: https://github.com/moby/moby/blob/master/api/swagger.yaml#L1969
1 parent 2ac6601 commit b896758

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/main/java/com/github/dockerjava/api/command/UpdateSwarmNodeCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public interface UpdateSwarmNodeCmd extends SyncDockerCmd<Void> {
2323

2424
UpdateSwarmNodeCmd withSwarmNodeSpec(SwarmNodeSpec swarmNodeSpec);
2525

26-
UpdateSwarmNodeCmd withVersion(@Nonnull Integer versionId);
26+
UpdateSwarmNodeCmd withVersion(@Nonnull Long versionId);
2727

2828
@CheckForNull
29-
Integer getVersion();
29+
Long getVersion();
3030

3131
interface Exec extends DockerCmdSyncExec<UpdateSwarmNodeCmd, Void> {
3232
}

src/main/java/com/github/dockerjava/api/model/ObjectVersion.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ public class ObjectVersion implements Serializable {
2222
private static final long serialVersionUID = 1L;
2323

2424
@JsonProperty("Index")
25-
private Integer index = null;
25+
private Long index = null;
2626

27-
public Integer getIndex() {
27+
public Long getIndex() {
2828
return index;
2929
}
3030

31-
public ObjectVersion withIndex(Integer index) {
31+
public ObjectVersion withIndex(Long index) {
3232
this.index = index;
3333
return this;
3434
}

src/main/java/com/github/dockerjava/core/command/UpdateSwarmNodeCmdImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class UpdateSwarmNodeCmdImpl extends AbstrDockerCmd<UpdateSwarmNodeCmd, V
2424

2525
private SwarmNodeSpec swarmNodeSpec;
2626

27-
private Integer version;
27+
private Long version;
2828

2929
public UpdateSwarmNodeCmdImpl(Exec exec) {
3030
super(exec);
@@ -69,14 +69,14 @@ public UpdateSwarmNodeCmd withSwarmNodeSpec(SwarmNodeSpec swarmNodeSpec) {
6969
}
7070

7171
@Override
72-
public UpdateSwarmNodeCmd withVersion(@Nonnull Integer versionId) {
72+
public UpdateSwarmNodeCmd withVersion(@Nonnull Long versionId) {
7373
this.version = versionId;
7474
return this;
7575
}
7676

7777
@CheckForNull
7878
@Override
79-
public Integer getVersion() {
79+
public Long getVersion() {
8080
return version;
8181
}
8282

0 commit comments

Comments
 (0)