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; ...@@ -60,7 +60,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author barner * @author barner
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: B5EED9862BC0107F49D3E471B16282D7 * @ConQAT.Rating YELLOW Hash: 8C9970F8CEED71C24AC90DF007DCD1D9
*/ */
public abstract class AnnotationViewPartBase extends ViewPart implements ISelectionListener, public abstract class AnnotationViewPartBase extends ViewPart implements ISelectionListener,
IAnnotationViewPart { IAnnotationViewPart {
...@@ -341,12 +341,7 @@ public abstract class AnnotationViewPartBase extends ViewPart implements ISelect ...@@ -341,12 +341,7 @@ public abstract class AnnotationViewPartBase extends ViewPart implements ISelect
Display.getDefault().asyncExec(new Runnable() { Display.getDefault().asyncExec(new Runnable() {
@Override @Override
public void run() { public void run() {
// TODO(VA) I will again get insults for this, but the following does the same activeInstances.stream().forEach(avp -> avp.forceFullUpdate());
// in one line:
// activeInstances.stream().forEach(avp -> avp.forceFullUpdate());
for(AnnotationViewPartBase avp : activeInstances) {
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