Skip to content

Commit

Permalink
Update Search.java
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 10, 2024
1 parent a9aadba commit ea67d6a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions core/src/main/java/hudson/search/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void doSuggest(StaplerRequest2 req, StaplerResponse2 rsp, @QueryParameter
symbolName = "symbol-search";
}

r.suggestions.add(new Item(item.getPath(), item.getUrl(), "",
r.suggestions.add(new Item(item.getPath(), item.getUrl(),
Symbol.get(new SymbolRequest.Builder().withRaw(symbolName).build())));
}
rsp.serveExposedBean(req, r, Flavor.JSON);
Expand Down Expand Up @@ -268,18 +268,15 @@ public static class Item {

private final String url;

public final String icon;

public final String iconXml;

public Item(String name) {
this(name, null, null, null);
this(name, null, null);
}

public Item(String name, String url, String icon, String iconXml) {
public Item(String name, String url, String iconXml) {
this.name = name;
this.url = url;
this.icon = icon;
this.iconXml = iconXml;
}

Expand All @@ -288,11 +285,6 @@ public String getUrl() {
return url;
}

@Exported
public String getIcon() {
return icon;
}

@Exported
public String getIconXml() {
return iconXml;
Expand Down

0 comments on commit ea67d6a

Please sign in to comment.