Skip to content

Commit

Permalink
[Fix JENKINS-46161] Add javadoc and annotation CheckForNull
Browse files Browse the repository at this point in the history
  • Loading branch information
liketic committed Sep 5, 2017
1 parent d2ae25c commit bde6413
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java
Expand Up @@ -76,6 +76,7 @@
import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.QueryParameter;

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;

/**
Expand All @@ -91,6 +92,7 @@ public final class ReverseBuildTrigger extends Trigger<Job> implements Dependenc

private static final Logger LOGGER = Logger.getLogger(ReverseBuildTrigger.class.getName());

@CheckForNull
private String upstreamProjects;
private Result threshold = Result.SUCCESS;

Expand All @@ -109,6 +111,11 @@ public ReverseBuildTrigger(String upstreamProjects) {
this.upstreamProjects = upstreamProjects;
}

/**
* Gets the upstream projects.
*
* @return Upstream projects or empty("") if upstream projects is null.
*/
public String getUpstreamProjects() {
return Util.fixNull(upstreamProjects);
}
Expand Down

0 comments on commit bde6413

Please sign in to comment.