Optimize ItemsTooltip sorting

This commit is contained in:
slprime authored and Maya committed 2025-04-08 23:55:37 -05:00
1 parent f6cd66be3b
commit 9e7b279e37
10 files changed
+41 -49

No files matched your search

@@ -158,7 +158,7 @@ public class SearchTokenParser {
return this.filtersCache.computeIfAbsent(filterText, text -> {
final String[] parts = text.split("\\|");
final List<ItemFilter> searchTokens = Arrays.stream(parts).map(this::parseSearchText).filter(s -> s != null)
.collect(Collectors.toCollection(ArrayList::new));
.collect(Collectors.toList());
if (searchTokens.isEmpty()) {
return new EverythingItemFilter();