Skip to content

Commit 39339b9

Browse files
committed
Add checkfornull annotation
1 parent 7452d6d commit 39339b9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import com.github.dockerjava.api.model.BuildResponseItem;
1313
import com.github.dockerjava.core.async.ResultCallbackTemplate;
1414

15+
import javax.annotation.CheckForNull;
16+
1517
/**
1618
*
1719
* @author marcus
@@ -21,6 +23,7 @@ public class BuildImageResultCallback extends ResultCallbackTemplate<BuildImageR
2123

2224
private final static Logger LOGGER = LoggerFactory.getLogger(BuildImageResultCallback.class);
2325

26+
@CheckForNull
2427
private BuildResponseItem latestItem = null;
2528

2629
@Override

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import com.github.dockerjava.api.model.PullResponseItem;
1111
import com.github.dockerjava.core.async.ResultCallbackTemplate;
1212

13+
import javax.annotation.CheckForNull;
14+
1315
/**
1416
*
1517
* @author marcus
@@ -19,6 +21,7 @@ public class PullImageResultCallback extends ResultCallbackTemplate<PullImageRes
1921

2022
private final static Logger LOGGER = LoggerFactory.getLogger(PullImageResultCallback.class);
2123

24+
@CheckForNull
2225
private PullResponseItem latestItem = null;
2326

2427
@Override

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import com.github.dockerjava.api.model.PushResponseItem;
1111
import com.github.dockerjava.core.async.ResultCallbackTemplate;
1212

13+
import javax.annotation.CheckForNull;
14+
1315
/**
1416
*
1517
* @author marcus
@@ -19,6 +21,7 @@ public class PushImageResultCallback extends ResultCallbackTemplate<PushImageRes
1921

2022
private final static Logger LOGGER = LoggerFactory.getLogger(PushImageResultCallback.class);
2123

24+
@CheckForNull
2225
private PushResponseItem latestItem = null;
2326

2427
@Override

0 commit comments

Comments
 (0)