From 679bd78ed91b8a74cee08ad388222d941e2631db Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Mon, 9 Jul 2018 18:54:55 +0300 Subject: [PATCH] Revert: use lambdas (e67e0f67), a javac bug? --- .../navigation/GotoImplementationHandler.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoImplementationHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoImplementationHandler.java index 19732b88c2b4..bd1709232774 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoImplementationHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/navigation/GotoImplementationHandler.java @@ -142,9 +142,12 @@ public class GotoImplementationHandler extends GotoTargetHandler { ImplementationsUpdaterTask(@NotNull GotoData gotoData, @NotNull Editor editor, int offset, final PsiReference reference) { super(gotoData.source.getProject(), ImplementationSearcher.SEARCHING_FOR_IMPLEMENTATIONS, - createComparatorWrapper(Comparator.comparing((Function)e1 -> { - return getRenderer(e1, gotoData).getComparingObject(e1); - }))); + createComparatorWrapper(Comparator.comparing(new Function() { + @Override + public Comparable apply(PsiElement e1) { + return getRenderer(e1, gotoData).getComparingObject(e1); + } + }))); myEditor = editor; myOffset = offset; myGotoData = gotoData;