mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
http://ea.jetbrains.com/browser/ea_problems/17729 (IOE: PsiJavaParserFacadeImpl.createExpressionFromText)
This commit is contained in:
+6
@@ -93,6 +93,12 @@ public class ConstantSubexpressionIntention extends MutablyNamedIntention {
|
||||
newExpression += '"' + StringUtil.escapeStringCharacters(
|
||||
constantValue.toString()) + '"';
|
||||
} else if (constantValue != null) {
|
||||
if (constantValue instanceof Number) {
|
||||
final Number number = (Number) constantValue;
|
||||
if (0 > number.doubleValue()) {
|
||||
newExpression += " ";
|
||||
}
|
||||
}
|
||||
newExpression += constantValue.toString();
|
||||
}
|
||||
replaceExpression(newExpression, expression);
|
||||
|
||||
Reference in New Issue
Block a user