mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
redundant cast: process branches of conditional expressions with respect to expected type for functional expressions (IDEA-156480)
This commit is contained in:
@@ -663,6 +663,10 @@ public class RedundantCastUtil {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (operand instanceof PsiFunctionalExpression && !castTo.equals(PsiTypesUtil.getExpectedTypeByParent(parent))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (arrayAccessAtTheLeftSideOfAssignment(parent, typeCast)) {
|
||||
|
||||
Reference in New Issue
Block a user