preserve comments: extract if with end of line comments

This commit is contained in:
Anna.Kozlova
2017-11-27 16:14:35 +01:00
parent f6f68c5d42
commit ab80e0dcdd
3 changed files with 7 additions and 7 deletions

View File

@@ -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");

View File

@@ -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");
}
}