Skip to content

Commit

Permalink
Implement IconSpec in IComputer
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 11, 2024
1 parent 5791010 commit 2673844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions core/src/main/java/hudson/model/Computer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1109,11 +1109,6 @@ public String getSearchUrl() {
return getUrl();
}

@Override
public String getSearchIcon() {
return this.getIconClassName();
}

/**
* {@link RetentionStrategy} associated with this computer.
*
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/jenkins/model/IComputer.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import jenkins.agents.IOfflineCause;
import org.jenkins.ui.icon.Icon;
import org.jenkins.ui.icon.IconSet;
import org.jenkins.ui.icon.IconSpec;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.Beta;

Expand All @@ -44,7 +45,7 @@
* @since 2.480
*/
@Restricted(Beta.class)
public interface IComputer extends AccessControlled {
public interface IComputer extends AccessControlled, IconSpec {
/**
* Returns {@link Node#getNodeName() the name of the node}.
*/
Expand Down

0 comments on commit 2673844

Please sign in to comment.