Skip to content

Commit 6df5a7f

Browse files
author
Aleksandr Guljajev
committed
Adding checkfornull annotation
1 parent 4b543c3 commit 6df5a7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
77
import com.fasterxml.jackson.annotation.JsonProperty;
88

9+
import javax.annotation.CheckForNull;
10+
911
@JsonIgnoreProperties(ignoreUnknown = true)
1012
public class HostConfig {
1113

@@ -199,6 +201,7 @@ public int getCpuShares() {
199201
return cpuShares;
200202
}
201203

204+
@CheckForNull
202205
public String getPidMode() {
203206
return pidMode;
204207
}

0 commit comments

Comments
 (0)