mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
anonymous -> lambda
This commit is contained in:
+5
-8
@@ -213,15 +213,12 @@ class Html5SectionsProcessor {
|
||||
}
|
||||
|
||||
private static Computable<Collection<StructureViewTreeElement>> createChildrenComputable(final Collection<Section> children) {
|
||||
return new Computable<Collection<StructureViewTreeElement>>() {
|
||||
@Override
|
||||
public Collection<StructureViewTreeElement> compute() {
|
||||
final Collection<StructureViewTreeElement> result = new ArrayList<StructureViewTreeElement>();
|
||||
for (Section section : children) {
|
||||
result.add(createHtml5SectionTreeElement(section));
|
||||
}
|
||||
return result;
|
||||
return () -> {
|
||||
final Collection<StructureViewTreeElement> result = new ArrayList<StructureViewTreeElement>();
|
||||
for (Section section : children) {
|
||||
result.add(createHtml5SectionTreeElement(section));
|
||||
}
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user