mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix test
This commit is contained in:
+4
-1
@@ -210,7 +210,10 @@ public class UnnecessaryBoxingInspection extends BaseInspection {
|
||||
}
|
||||
|
||||
private static boolean canBeUnboxed(PsiExpression expression) {
|
||||
final PsiElement parent = ParenthesesUtils.getParentSkipParentheses(expression);
|
||||
PsiElement parent = expression.getParent();
|
||||
while (parent instanceof PsiParenthesizedExpression) {
|
||||
parent = parent.getParent();
|
||||
}
|
||||
if (parent instanceof PsiExpressionStatement ||
|
||||
parent instanceof PsiReferenceExpression) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user