mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
ConvertSwitchToIfIntention: better comments handling
This commit is contained in:
+4
-4
@@ -1,13 +1,13 @@
|
||||
// "Replace 'switch' with 'if'" "true"
|
||||
class X {
|
||||
public void doSomething( String value) {
|
||||
//comment1
|
||||
//comment4
|
||||
//comment6
|
||||
//comment7
|
||||
if ("case1".equals(value)) {//comment2
|
||||
if ("case1".equals(value)) {//comment1
|
||||
//comment2
|
||||
//comment3
|
||||
} else if ("case2".equals(value)) {//comment5
|
||||
} else if ("case2".equals(value)) {//comment4
|
||||
//comment5
|
||||
}//comment8
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user