Update Search.java

This commit is contained in:
Jan Faracik 2024-12-10 22:26:16 +00:00
parent a9aadbab30
commit ea67d6a554
1 changed files with 3 additions and 11 deletions

View File

@ -166,7 +166,7 @@ public class Search implements StaplerProxy {
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);
@ -268,18 +268,15 @@ public class Search implements StaplerProxy {
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;
}
@ -288,11 +285,6 @@ public class Search implements StaplerProxy {
return url;
}
@Exported
public String getIcon() {
return icon;
}
@Exported
public String getIconXml() {
return iconXml;