mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
really linear lookup element sorting
This commit is contained in:
@@ -57,11 +57,7 @@ public abstract class ComparingClassifier<T> extends Classifier<T> {
|
||||
|
||||
@Override
|
||||
public Iterable<T> classify(Iterable<T> source, ProcessingContext context) {
|
||||
List<T> result = new ArrayList<T>();
|
||||
for (List<T> list : groupByWeights(source).values()) {
|
||||
ContainerUtil.addAll(result, myNext.classify(list, context));
|
||||
}
|
||||
return result;
|
||||
return ContainerUtil.flatten(groupByWeights(myNext.classify(source, context)).values());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user