mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix getLiteral() method
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user