mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
preserve comments: replace switch with if (IDEA-113518)
This commit is contained in:
+9
-1
@@ -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 {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user