mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-highlighting] IDEA-344501 (part of) IntelliJ Wrong Error Highlighting with Wildcard Method Reference
Do not report 'unexpected wildcard' if the method reference is not in the constructor form (see JLS 15.13) GitOrigin-RevId: 19d0acbe97b2a4d6ae3f5c611ff6a24490eec09c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1ff463da3d
commit
8034f97303
+1
-1
@@ -56,7 +56,7 @@ final class FunctionChecker {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (qualifier instanceof PsiTypeElement typeElement) {
|
||||
if (qualifier instanceof PsiTypeElement typeElement && expression.isConstructor()) {
|
||||
PsiType psiType = typeElement.getType();
|
||||
if (psiType instanceof PsiClassType) {
|
||||
final PsiJavaCodeReferenceElement referenceElement = typeElement.getInnermostComponentReferenceElement();
|
||||
|
||||
Reference in New Issue
Block a user