Skip to content

Commit 652510b

Browse files
committed
added CheckForNull
1 parent 11dba69 commit 652510b

File tree

1 file changed

+8
-1
lines changed
  • src/main/java/com/github/dockerjava/api/model

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import com.fasterxml.jackson.annotation.JsonInclude.Include;
88
import com.fasterxml.jackson.annotation.JsonProperty;
99

10+
import javax.annotation.CheckForNull;
11+
1012
/**
1113
* Representation of a Docker event.
1214
*/
@@ -101,7 +103,12 @@ public Node getNode() {
101103
return node;
102104
}
103105

104-
@JsonProperty("Type")
106+
/*
107+
* Get type of event.
108+
*
109+
* @return type of event
110+
*/
111+
@CheckForNull
105112
public String getType() {
106113
return type;
107114
}

0 commit comments

Comments
 (0)