Skip to content
Permalink
Browse files

[Fix JENKINS-46161] Add javadoc and annotation CheckForNull

  • Loading branch information...
liketic committed Sep 5, 2017
1 parent d2ae25c commit bde6413f5db8f1b37731316d7e84856e277f43f0
Showing with 7 additions and 0 deletions.
  1. +7 −0 core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java
@@ -76,6 +76,7 @@
import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.QueryParameter;

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

/**
@@ -91,6 +92,7 @@

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

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

@@ -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);
}

0 comments on commit bde6413

Please sign in to comment.
You can’t perform that action at this time.