extract method: skip parenthesis as they are skipped by control flow (IDEA-134904)

This commit is contained in:
Anna Kozlova
2015-01-02 12:05:47 +01:00
parent fa99ec2a74
commit 5ecb541855
4 changed files with 25 additions and 2 deletions
@@ -0,0 +1,7 @@
class Test {
{
int i = 2;
int n = 5;
boolean b = !<selection>(i < n)</selection>;
}
}
@@ -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;
}
}