Skip to content

Commit 0d2562e

Browse files
committed
@nonnull annotation
1 parent bbab47e commit 0d2562e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
package com.github.dockerjava.api.command;
22

33
import com.github.dockerjava.api.model.UpdateContainerResponse;
4+
import com.github.dockerjava.core.RemoteApiVersion;
45

56
import javax.annotation.CheckForNull;
7+
import javax.annotation.Nonnull;
68

79
/**
810
* @author Kanstantsin Shautsou
11+
* @since {@link RemoteApiVersion#VERSION_1_22}
912
*/
1013
public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerResponse> {
1114
@CheckForNull
@@ -16,7 +19,7 @@ public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerRespons
1619

1720
public UpdateContainerCmd withBlkioWeight(Integer blkioWeight);
1821

19-
public UpdateContainerCmd withContainerId(String containerId);
22+
public UpdateContainerCmd withContainerId(@Nonnull String containerId);
2023

2124
@CheckForNull
2225
public Integer getCpuPeriod();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.apache.commons.lang.builder.ToStringBuilder;
1212

1313
import javax.annotation.CheckForNull;
14+
import javax.annotation.Nonnull;
1415

1516
/**
1617
* @author Kanstantsin Shautsou
@@ -90,7 +91,7 @@ public String getContainerId() {
9091
/**
9192
* @see #containerId
9293
*/
93-
public UpdateContainerCmd withContainerId(String containerId) {
94+
public UpdateContainerCmd withContainerId(@Nonnull String containerId) {
9495
this.containerId = containerId;
9596
return this;
9697
}

0 commit comments

Comments
 (0)