Skip to content

Commit

Permalink
[JENKINS-31462] @oleg-nenashev's comments were addresed
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Recena committed Nov 17, 2015
1 parent b05cadb commit 7bf7ae0
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -34,6 +34,8 @@
import java.net.MalformedURLException;
import java.net.URL;

import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.github.GitHub;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
Expand Down Expand Up @@ -99,6 +101,7 @@ public String getDisplayName() {
return "";
}

@Restricted(NoExternalUse.class)
public FormValidation doCheckApiUri(@QueryParameter String apiUri) {
if (Util.fixEmptyAndTrim(apiUri) == null) {
return FormValidation.warning("You must specify the API URI");
Expand All @@ -117,6 +120,7 @@ public FormValidation doCheckApiUri(@QueryParameter String apiUri) {
}
}

@Restricted(NoExternalUse.class)
public FormValidation doCheckName(@QueryParameter String name) {
if (Util.fixEmptyAndTrim(name) == null) {
return FormValidation.warning("You must specify the name");
Expand Down

0 comments on commit 7bf7ae0

Please sign in to comment.