mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 21:41:24 +07:00
JavaFunctionalExpressionIndex: don't throw on invalid code with lambdas outside members
GitOrigin-RevId: b2fac86f104ebf9d7a79dfc8136a69e7343adbb4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0188dc5f2a
commit
1182518e6b
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -9,4 +9,6 @@ class A {
|
||||
|
||||
interface I {
|
||||
void run();
|
||||
}
|
||||
}
|
||||
|
||||
@Anno(() -> {})
|
||||
Reference in New Issue
Block a user