fix(gui): properly handle excluded classes in code search (#2432)

This commit is contained in:
Skylot
2025-04-18 22:30:00 +01:00
parent 03d4cb134f
commit ea6492e5ba
8 changed files with 146 additions and 104 deletions
@@ -28,7 +28,8 @@ public class DecompilerScheduler implements IDecompileScheduler {
long start = System.currentTimeMillis();
List<List<JavaClass>> result = internalBatches(classes);
if (LOG.isDebugEnabled()) {
LOG.debug("Build decompilation batches in {}ms", System.currentTimeMillis() - start);
LOG.debug("Build decompilation batches in {}ms for {} classes",
System.currentTimeMillis() - start, classes.size());
}
if (DEBUG_BATCHES) {
check(result, classes);
@@ -77,7 +78,7 @@ public class DecompilerScheduler implements IDecompileScheduler {
result.add(batch);
}
}
if (mergedBatch.size() > 0) {
if (!mergedBatch.isEmpty()) {
result.add(mergedBatch);
}
if (DEBUG_BATCHES) {