Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoopur Gupta2019-04-30 11:33:20 +0000
committerNoopur Gupta2019-04-30 11:33:20 +0000
commit3bf89df8d101ff0eec8f20b0570b4a6815294cd0 (patch)
tree8af11365b99b508d01671e5a8df467b9f417b902
parent19375a30e1f190d36fddc24bba1f39b27dfad8a3 (diff)
downloadeclipse.jdt.ui-3bf89df8d101ff0eec8f20b0570b4a6815294cd0.tar.gz
eclipse.jdt.ui-3bf89df8d101ff0eec8f20b0570b4a6815294cd0.tar.xz
eclipse.jdt.ui-3bf89df8d101ff0eec8f20b0570b4a6815294cd0.zip
Bug 546856: [12] Update ASTFlattener after changes in NaiveASTFlattener
-rw-r--r--org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java
index d4149fb40d..9b9ba4afa5 100644
--- a/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java
+++ b/org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java
@@ -1545,14 +1545,14 @@ public class ASTFlattener extends GenericVisitor {
if (node.getAST().apiLevel() >= JLS12) {
if (node.isDefault()) {
this.fBuffer.append("default");//$NON-NLS-1$
- this.fBuffer.append(node.isSwitchLabeledRule() ? "->" : ":");//$NON-NLS-1$ //$NON-NLS-2$
+ this.fBuffer.append(node.isSwitchLabeledRule() ? " ->" : ":");//$NON-NLS-1$ //$NON-NLS-2$
} else {
this.fBuffer.append("case ");//$NON-NLS-1$
for (Iterator<Expression> it= node.expressions().iterator(); it.hasNext();) {
Expression t= it.next();
t.accept(this);
this.fBuffer.append(it.hasNext() ? ", " : //$NON-NLS-1$
- node.isSwitchLabeledRule() ? "->" : ":");//$NON-NLS-1$ //$NON-NLS-2$
+ node.isSwitchLabeledRule() ? " ->" : ":");//$NON-NLS-1$ //$NON-NLS-2$
}
}
} else {

Back to the top