Implement IconSpec in IComputer

This commit is contained in:
Jan Faracik 2024-12-11 21:03:29 +00:00
parent 57910109f3
commit 26738449cd
2 changed files with 2 additions and 6 deletions

View File

@ -1109,11 +1109,6 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
return getUrl(); return getUrl();
} }
@Override
public String getSearchIcon() {
return this.getIconClassName();
}
/** /**
* {@link RetentionStrategy} associated with this computer. * {@link RetentionStrategy} associated with this computer.
* *

View File

@ -35,6 +35,7 @@ import java.util.concurrent.Future;
import jenkins.agents.IOfflineCause; import jenkins.agents.IOfflineCause;
import org.jenkins.ui.icon.Icon; import org.jenkins.ui.icon.Icon;
import org.jenkins.ui.icon.IconSet; import org.jenkins.ui.icon.IconSet;
import org.jenkins.ui.icon.IconSpec;
import org.kohsuke.accmod.Restricted; import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.Beta; import org.kohsuke.accmod.restrictions.Beta;
@ -44,7 +45,7 @@ import org.kohsuke.accmod.restrictions.Beta;
* @since 2.480 * @since 2.480
*/ */
@Restricted(Beta.class) @Restricted(Beta.class)
public interface IComputer extends AccessControlled { public interface IComputer extends AccessControlled, IconSpec {
/** /**
* Returns {@link Node#getNodeName() the name of the node}. * Returns {@link Node#getNodeName() the name of the node}.
*/ */