// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.serviceview.bindings;

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 <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
 */
@JsonIgnoreProperties(value = { "splitOnSpace" }, ignoreUnknown = true)
public class ServicePort {
    public int number;
    public String tags;
    private static final Splitter splitOnSpace = Splitter.on(' ');

    /**
     * Return true if all argument tags are present for this port.
     *
     * @param tag
     *            one or more tag names to check for
     * @return true if all argument tags are present for this port, false
     *         otherwise
     */
    public boolean hasTags(@NonNull String... tag) {
        if (tags == null) {
            return false;
        }
        List<String> isTaggedWith = splitOnSpace.splitToList(tags);
        for (String t : tag) {
            if (!isTaggedWith.contains(t)) {
                return false;
            }
        }
        return true;
    }
}

@@ -290,57 +290,8 @@
 r;%0A%0A
-import edu.umd.cs.findbugs.annotations.NonNull;%0A%0A
 /**%0A
@@ -403,47 +403,8 @@
 hor 
-%3Ca href=%22mailto:steinar@yahoo-inc.com%22%3E
 Stei
@@ -418,12 +418,8 @@
 tsen
-%3C/a%3E
 %0A */
@@ -924,17 +924,8 @@
 ags(
-@NonNull 
 Stri

Remove annotation