aboutsummaryrefslogtreecommitdiffstats
path: root/serviceview
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2019-08-27 13:36:53 +0200
committerGitHub <noreply@github.com>2019-08-27 13:36:53 +0200
commitd67186bc14ac89c2247de1343a27fefcc0c301da (patch)
tree5b7587405c5ecfa9cbdf471dff0baa8c7840ec6c /serviceview
parentbc44cc9c03079a202be62ecd323ef07ef4b3e09b (diff)
Revert " Upgrade to zookeeper 3.4.14, take 4"
Diffstat (limited to 'serviceview')
-rw-r--r--serviceview/src/main/java/com/yahoo/vespa/serviceview/bindings/ServicePort.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/serviceview/src/main/java/com/yahoo/vespa/serviceview/bindings/ServicePort.java b/serviceview/src/main/java/com/yahoo/vespa/serviceview/bindings/ServicePort.java
index 98db96a902a..a82069ea01d 100644
--- a/serviceview/src/main/java/com/yahoo/vespa/serviceview/bindings/ServicePort.java
+++ b/serviceview/src/main/java/com/yahoo/vespa/serviceview/bindings/ServicePort.java
@@ -6,11 +6,13 @@ import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.google.common.base.Splitter;
+import edu.umd.cs.findbugs.annotations.NonNull;
+
/**
* View of {@link com.yahoo.cloud.config.ModelConfig.Hosts.Services.Ports}.
*
* @author mortent
- * @author Steinar Knutsen
+ * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
*/
@JsonIgnoreProperties(value = { "splitOnSpace" }, ignoreUnknown = true)
public class ServicePort {
@@ -26,7 +28,7 @@ public class ServicePort {
* @return true if all argument tags are present for this port, false
* otherwise
*/
- public boolean hasTags(String... tag) {
+ public boolean hasTags(@NonNull String... tag) {
if (tags == null) {
return false;
}