diff options
| author | Noopur Gupta | 2019-03-08 09:48:42 +0000 |
|---|---|---|
| committer | Noopur Gupta | 2019-03-08 09:48:42 +0000 |
| commit | 92047b095ca3e89222f3d87c85a42b8a9b213701 (patch) | |
| tree | d1f422aa9eaa420127424443730941437dab740e | |
| parent | a9cbf7787a0c05a7bcd7ca79caa4b8836b5fb35e (diff) | |
| download | eclipse.jdt.ui-92047b095ca3e89222f3d87c85a42b8a9b213701.tar.gz eclipse.jdt.ui-92047b095ca3e89222f3d87c85a42b8a9b213701.tar.xz eclipse.jdt.ui-92047b095ca3e89222f3d87c85a42b8a9b213701.zip | |
Change-Id: I11f516b0d9f1f4cfdf3232c58d9cd4a3738df92a
| -rw-r--r-- | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java index 9b86071aac..94374a9263 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java @@ -1848,11 +1848,10 @@ public class LocalCorrectionsSubProcessor { ListRewrite listRewrite= astRewrite.getListRewrite(switchStatement, SwitchStatement.STATEMENTS_PROPERTY); boolean isGreaterOrEqualTo12= ast.apiLevel() >= AST.JLS12; - if (isGreaterOrEqualTo12) { - return; - } SwitchCase newSwitchCase= ast.newSwitchCase(); - newSwitchCase.setExpression(null); + if (!isGreaterOrEqualTo12) { + newSwitchCase.setExpression(null); + } listRewrite.insertLast(newSwitchCase, null); listRewrite.insertLast(ast.newBreakStatement(), null); |
