mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: skip parenthesis as they are skipped by control flow (IDEA-134904)
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
{
|
||||
int i = 2;
|
||||
int n = 5;
|
||||
boolean b = !<selection>(i < n)</selection>;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
{
|
||||
int i = 2;
|
||||
int n = 5;
|
||||
boolean b = !newMethod(i, n);
|
||||
}
|
||||
|
||||
private boolean newMethod(int i, int n) {
|
||||
return i < n;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user