Skip to content

Commit

Permalink
mark the legacy jelly endpoints as DoNotUse
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor committed Nov 1, 2014
1 parent 492b490 commit c426fd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/hudson/model/AbstractProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
import org.acegisecurity.Authentication;
import org.jenkinsci.bytecode.AdaptField;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.DoNotUse;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.args4j.Argument;
import org.kohsuke.args4j.CmdLineException;
Expand Down Expand Up @@ -2031,6 +2032,7 @@ public boolean isApplicable(Descriptor descriptor) {
return true;
}

@Restricted(DoNotUse.class)
public FormValidation doCheckAssignedLabelString(@AncestorInPath AbstractProject<?,?> project,
@QueryParameter String value) {
// Provide a legacy interface in case plugins are not going through p:config-assignedLabel
Expand Down Expand Up @@ -2097,6 +2099,7 @@ public AutoCompletionCandidates doAutoCompleteUpstreamProjects(@QueryParameter S
return candidates;
}

@Restricted(DoNotUse.class)
public AutoCompletionCandidates doAutoCompleteAssignedLabelString(@QueryParameter String value) {
// Provide a legacy interface in case plugins are not going through p:config-assignedLabel
// see: JENKINS-25372
Expand Down

0 comments on commit c426fd2

Please sign in to comment.