preserve comments: replace switch with if (IDEA-113518)

This commit is contained in:
Anna.Kozlova
2017-12-28 18:09:41 +01:00
parent b7ecfbdd8b
commit a1239e3f1f
3 changed files with 47 additions and 28 deletions
@@ -1,7 +1,15 @@
// "Replace 'switch' with 'if'" "true"
class X {
public void doSomething( String value) {
if ("case1".equals(value)) {
//comment1
//comment3
//comment4
//comment5
//comment6
//comment7
//comment8
if ("case1".equals(value)) {//comment2
} else if ("case2".equals(value)) {
} else {
}