mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
assume simple getters in general case to have side effects (can be overridden)
This commit is contained in:
@@ -392,10 +392,11 @@ public abstract class DebuggerUtils {
|
||||
}
|
||||
}
|
||||
else if (psiElement instanceof PsiMethod) {
|
||||
final PsiMethod method = (PsiMethod)psiElement;
|
||||
if (!isSimpleGetter(method)) {
|
||||
rv.set(Boolean.TRUE);
|
||||
}
|
||||
rv.set(Boolean.TRUE);
|
||||
//final PsiMethod method = (PsiMethod)psiElement;
|
||||
//if (!isSimpleGetter(method)) {
|
||||
// rv.set(Boolean.TRUE);
|
||||
//}
|
||||
}
|
||||
if (!rv.get().booleanValue()) {
|
||||
super.visitReferenceExpression(expression);
|
||||
@@ -420,13 +421,14 @@ public abstract class DebuggerUtils {
|
||||
|
||||
@Override
|
||||
public void visitCallExpression(final PsiCallExpression callExpression) {
|
||||
final PsiMethod method = callExpression.resolveMethod();
|
||||
if (method == null || !isSimpleGetter(method)) {
|
||||
rv.set(Boolean.TRUE);
|
||||
}
|
||||
else {
|
||||
super.visitCallExpression(callExpression);
|
||||
}
|
||||
rv.set(Boolean.TRUE);
|
||||
//final PsiMethod method = callExpression.resolveMethod();
|
||||
//if (method == null || !isSimpleGetter(method)) {
|
||||
// rv.set(Boolean.TRUE);
|
||||
//}
|
||||
//else {
|
||||
// super.visitCallExpression(callExpression);
|
||||
//}
|
||||
}
|
||||
});
|
||||
return rv.get().booleanValue();
|
||||
|
||||
Reference in New Issue
Block a user