Commit e1e939da authored by Simon Barner's avatar Simon Barner
Browse files

- Use lambda expression for denser code

refs 2490
parent 2a10e62d
......@@ -60,7 +60,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: B5EED9862BC0107F49D3E471B16282D7
* @ConQAT.Rating YELLOW Hash: 8C9970F8CEED71C24AC90DF007DCD1D9
*/
public abstract class AnnotationViewPartBase extends ViewPart implements ISelectionListener,
IAnnotationViewPart {
......@@ -341,12 +341,7 @@ public abstract class AnnotationViewPartBase extends ViewPart implements ISelect
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
// TODO(VA) I will again get insults for this, but the following does the same
// in one line:
// activeInstances.stream().forEach(avp -> avp.forceFullUpdate());
for(AnnotationViewPartBase avp : activeInstances) {
avp.forceFullUpdate();
}
activeInstances.stream().forEach(avp -> avp.forceFullUpdate());
}
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment