anonymous -> lambda

This commit is contained in:
Anna.Kozlova
2016-06-01 09:00:47 +02:00
parent 5be0d03de9
commit 9d6477485d
684 changed files with 4498 additions and 8864 deletions
@@ -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;
};
}