mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
LambdaCanBeMethodReferenceInspection: allow parenthesized qualifier
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ class Test<T> {
|
||||
|
||||
class Bar {
|
||||
void f( ){
|
||||
Function<Test<T>.Bar, String> r = (Test<T>.Bar t) -> t.fo<caret>o();
|
||||
Function<Test<T>.Bar, String> r = (Test<T>.Bar t) -> (t).fo<caret>o();
|
||||
}
|
||||
|
||||
private String foo() {}
|
||||
|
||||
+1
-1
@@ -498,7 +498,7 @@ public class LambdaCanBeMethodReferenceInspection extends AbstractBaseJavaLocalI
|
||||
final PsiMethod psiMethod,
|
||||
final PsiSubstitutor substitutor) {
|
||||
|
||||
final PsiExpression qualifierExpression = methodCall.getMethodExpression().getQualifierExpression();
|
||||
final PsiExpression qualifierExpression = PsiUtil.skipParenthesizedExprDown(methodCall.getMethodExpression().getQualifierExpression());
|
||||
|
||||
final PsiClass containingClass = psiMethod.getContainingClass();
|
||||
LOG.assertTrue(containingClass != null);
|
||||
|
||||
Reference in New Issue
Block a user