Skip to content

Commit

Permalink
[JENKINS-20023] Restrict use of CLIAction
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Oct 14, 2013
1 parent 5f712b3 commit ae74404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion core/src/main/java/hudson/cli/CLIAction.java
Expand Up @@ -33,6 +33,8 @@

import jenkins.model.Jenkins;

import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;

Expand All @@ -43,9 +45,9 @@

/**
* @author ogondza
* @since TODO
*/
@Extension
@Restricted(NoExternalUse.class)
public class CLIAction implements RootAction {

private transient final Map<UUID,FullDuplexHttpChannel> duplexChannels = new HashMap<UUID, FullDuplexHttpChannel>();
Expand Down
3 changes: 0 additions & 3 deletions core/src/main/java/hudson/cli/CLICommand.java
Expand Up @@ -351,7 +351,6 @@ protected void printUsage(PrintStream stderr, CmdLineParser p) {

/**
* Get single line summary as a string.
* @since TODO
*/
@Restricted(NoExternalUse.class)
public final String getSingleLineSummary() {
Expand All @@ -362,7 +361,6 @@ public final String getSingleLineSummary() {

/**
* Get usage as a string.
* @since TODO
*/
@Restricted(NoExternalUse.class)
public final String getUsage() {
Expand All @@ -373,7 +371,6 @@ public final String getUsage() {

/**
* Get long description as a string.
* @since TODO
*/
@Restricted(NoExternalUse.class)
public final String getLongDescription() {
Expand Down

0 comments on commit ae74404

Please sign in to comment.