mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
extract if: keep necessary parenthesis (IDEA-219639)
GitOrigin-RevId: 9582978807c159f8302a1781a5f3388fb0130ad9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bf3eefc4b0
commit
774401fb2f
@@ -0,0 +1,10 @@
|
||||
// "Extract if (b)" "true"
|
||||
class MyTest {
|
||||
|
||||
void foo(boolean a, boolean b, boolean c, boolean d) {
|
||||
if (b)
|
||||
if (a && (c || d)) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Extract if (b)" "true"
|
||||
class MyTest {
|
||||
|
||||
void foo(boolean a, boolean b, boolean c, boolean d) {
|
||||
if (a && <caret>b && (c || d)) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user