mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
EA-41161 - CCE: JavaTreeGenerator.generateTreeFor: create from usage with method ref on the right
(cherry-picked from 04f7b76)
This commit is contained in:
@@ -80,6 +80,6 @@ public class PsiTypeVisitor<A> {
|
||||
final PsiMethodReferenceExpression expression = methodReferenceType.getExpression();
|
||||
final PsiType interfaceType = expression.getFunctionalInterfaceType();
|
||||
if (interfaceType != null) return interfaceType.accept(this);
|
||||
return visitType(methodReferenceType);
|
||||
return visitType(interfaceType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create Local Variable 'zeit'" "true"
|
||||
public class A {
|
||||
void foo() {
|
||||
Object zeit<caret> = A::foo;
|
||||
}
|
||||
|
||||
static void foo(){}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create Local Variable 'zeit'" "true"
|
||||
public class A {
|
||||
void foo() {
|
||||
ze<caret>it = A::foo;
|
||||
}
|
||||
|
||||
static void foo(){}
|
||||
}
|
||||
Reference in New Issue
Block a user