mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
preserve comments: extract if condition
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// "Extract if (a)" "true"
|
||||
class TestThreadInspection {
|
||||
void f(boolean a, boolean b, boolean c){
|
||||
//simple end comment
|
||||
if (a) {
|
||||
System.out.println("a&b");
|
||||
} else if (b) {
|
||||
|
||||
@@ -3,7 +3,9 @@ class TestThreadInspection {
|
||||
void f(boolean a, boolean b, boolean c){
|
||||
if (<caret>a || b) {
|
||||
System.out.println("a&b");
|
||||
} else {
|
||||
}
|
||||
//simple end comment
|
||||
else {
|
||||
System.out.println("c");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user