fix getLiteral() method

This commit is contained in:
Bas Leijdekkers
2012-09-05 12:10:40 +02:00
parent 08a95a4d58
commit 3ef49580d6
@@ -173,7 +173,7 @@ public class ExpressionUtils {
}
final PsiTypeCastExpression typeCastExpression = (PsiTypeCastExpression)expression;
final PsiExpression operand = ParenthesesUtils.stripParentheses(typeCastExpression.getOperand());
if (!(operand instanceof PsiTypeCastExpression)) {
if (!(operand instanceof PsiLiteralExpression)) {
return null;
}
return (PsiLiteralExpression)operand;