mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
extract if: preserve comments inside redundant parenthesis
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user