JavaFunctionalExpressionIndex: don't throw on invalid code with lambdas outside members

GitOrigin-RevId: b2fac86f104ebf9d7a79dfc8136a69e7343adbb4
This commit is contained in:
Peter Gromov
2020-06-19 17:23:22 +02:00
committed by intellij-monorepo-bot
parent 0188dc5f2a
commit 1182518e6b
2 changed files with 3 additions and 3 deletions

View File

@@ -404,8 +404,6 @@ public class JavaFunctionalExpressionIndex extends FileBasedIndexExtension<Funct
list.add(new IndexEntry(element.getStartOffset(), index,
context.getStartOffset(), context.getEndOffset(),
createOccurrence(element, resolver)));
} else {
LOG.error("Functional expression outside of a member in " + inputData.getFile());
}
index++;
}

View File

@@ -9,4 +9,6 @@ class A {
interface I {
void run();
}
}
@Anno(() -> {})