extract if: preserve comments inside redundant parenthesis

This commit is contained in:
Anna.Kozlova
2019-01-04 10:58:45 +01:00
parent 620a17f1f4
commit f105cd4e0c
3 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
// "Extract if (a)" "true"
class TestThreadInspection {
void f(boolean a, boolean b, boolean c){
/*the comment inside redundant parenthesis*/
//simple end comment
if (a) {
System.out.println("a&b");

View File

@@ -1,7 +1,7 @@
// "Extract if (a)" "true"
class TestThreadInspection {
void f(boolean a, boolean b, boolean c){
if (<caret>a || b) {
if (<caret>a || (b/*the comment inside redundant parenthesis*/)) {
System.out.println("a&b");
}
//simple end comment