Skip to content

Commit 36519cd

Browse files
authored
replace anonymous runnable class with lambda (eclipse-platform#1459)
* replace anonymous runnable class with lambda
1 parent 5d26487 commit 36519cd

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/CompletionProposalPopup2.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -872,18 +872,14 @@ public void processEvent(VerifyEvent e) {
872872
private void filterProposals() {
873873
++ fInvocationCounter;
874874
Control control= fViewer.getTextWidget();
875-
control.getDisplay().asyncExec(new Runnable() {
876-
long fCounter= fInvocationCounter;
877-
@Override
878-
public void run() {
879-
880-
if (fCounter != fInvocationCounter)
881-
return;
882-
if (fInvocationProcessedCounter == fInvocationCounter)
883-
return;
875+
long fCounter= fInvocationCounter;
876+
control.getDisplay().asyncExec(() -> {
877+
if (fCounter != fInvocationCounter)
878+
return;
879+
if (fInvocationProcessedCounter == fInvocationCounter)
880+
return;
884881

885-
doFilterProposals();
886-
}
882+
doFilterProposals();
887883
});
888884
}
889885

0 commit comments

Comments
 (0)