diff --git a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/CompletionProposalPopup2.java b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/CompletionProposalPopup2.java index d48f4bcfe11..2d4d5db7789 100644 --- a/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/CompletionProposalPopup2.java +++ b/bundles/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/link/contentassist/CompletionProposalPopup2.java @@ -872,18 +872,14 @@ public void processEvent(VerifyEvent e) { private void filterProposals() { ++ fInvocationCounter; Control control= fViewer.getTextWidget(); - control.getDisplay().asyncExec(new Runnable() { - long fCounter= fInvocationCounter; - @Override - public void run() { - - if (fCounter != fInvocationCounter) - return; - if (fInvocationProcessedCounter == fInvocationCounter) - return; + long fCounter= fInvocationCounter; + control.getDisplay().asyncExec(() -> { + if (fCounter != fInvocationCounter) + return; + if (fInvocationProcessedCounter == fInvocationCounter) + return; - doFilterProposals(); - } + doFilterProposals(); }); }