package io.jenkins.blueocean.rest.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.kohsuke.stapler.export.Exported;

import java.util.Collection;

import javax.annotation.Nonnull;

/**
 * Pipeline Branch API
 *
 * @author Vivek Pandey
 */
public abstract class BlueBranch extends Resource{
    public static final String NAME="name";
    public static final String RUNS="runs";
    public static final String WEATHER_SCORE ="weatherScore";
    public static final String BRANCH_PROPERTIES = "branchProperties";

    /**
     *  Branch name
     *
     *  @return gives branch name
     */
    @Exported(name = NAME)
    @JsonProperty(NAME)
    public abstract String getName();


    /**
     *  Weather score
     *
     *  @return gives weather score
     */
    @Exported(name = WEATHER_SCORE)
    @JsonProperty(WEATHER_SCORE)
    public abstract int getWeatherScore();


    /**
     * @return Gives Runs in this pipeline
     */
    @JsonProperty(RUNS)
    public abstract BlueRunContainer getRuns();
}

@@ -138,72 +138,8 @@
 d;%0A%0A
-import java.util.Collection;%0A%0Aimport javax.annotation.Nonnull;%0A%0A
 /**%0A
@@ -396,79 +396,8 @@
 re%22;
-%0A    public static final String BRANCH_PROPERTIES = %22branchProperties%22;
 %0A%0A  

Remove unneeded lines from BlueBranch