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