mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup: fewer sort() calls
GitOrigin-RevId: 05c13e140867d05d16c4f2e1094f9557aab2a118
This commit is contained in:
committed by
intellij-monorepo-bot
parent
258451a560
commit
4255ca958b
@@ -28,7 +28,7 @@ public abstract class AbstractQuery<Result> implements Query<Result> {
|
||||
List<Result> result = new ArrayList<>();
|
||||
Processor<Result> processor = Processors.cancelableCollectProcessor(result);
|
||||
forEach(processor);
|
||||
if (RANDOMIZE) {
|
||||
if (RANDOMIZE && result.size() > 1) {
|
||||
result.sort(CRAZY_ORDER);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user