preserve comments: extract if condition

This commit is contained in:
Anna.Kozlova
2017-11-24 17:26:42 +01:00
parent c896eb9a33
commit 8b287c2f4b
3 changed files with 39 additions and 25 deletions

View File

@@ -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) {

View File

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