IDEA-38861 ("Redundant type cast" inspection not triggered)

This commit is contained in:
Bas Leijdekkers
2011-04-11 14:42:01 +02:00
parent 20808ff4b0
commit 46a91d058a
@@ -227,7 +227,6 @@ public class RedundantCastUtil {
addToResults(typeCast);
}
}
qualifier = ((PsiTypeCastExpression)((PsiParenthesizedExpression)qualifier).getExpression()).getOperand();
}
catch (IncorrectOperationException e) {
}
@@ -332,6 +331,7 @@ public class RedundantCastUtil {
}
processAlreadyHasTypeCast(typeCast);
}
super.visitTypeCastExpression(typeCast);
}
private void processAlreadyHasTypeCast(PsiTypeCastExpression typeCast){