mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add more name suggestions for type casts and () expressions
This commit is contained in:
+4
@@ -640,6 +640,10 @@ public class JavaCodeStyleManagerImpl extends JavaCodeStyleManager {
|
||||
return new NamesByExprInfo(null, constantValueToConstantName(names));
|
||||
}
|
||||
}
|
||||
} else if (expr instanceof PsiParenthesizedExpression) {
|
||||
return suggestVariableNameByExpressionOnly(((PsiParenthesizedExpression)expr).getExpression(), variableKind);
|
||||
} else if (expr instanceof PsiTypeCastExpression) {
|
||||
return suggestVariableNameByExpressionOnly(((PsiTypeCastExpression)expr).getOperand(), variableKind);
|
||||
}
|
||||
|
||||
return new NamesByExprInfo(null, ArrayUtil.EMPTY_STRING_ARRAY);
|
||||
|
||||
Reference in New Issue
Block a user