extract variable: ensure replace all occurrences survive parenthesis around value (IDEA-122041)

This commit is contained in:
Anna Kozlova
2014-04-16 16:42:07 +02:00
parent 51f15b7ea4
commit 9fda587640
6 changed files with 60 additions and 7 deletions
@@ -0,0 +1,13 @@
class Test {
Test foo(long l) {
return this;
}
{
Test t = new Test()
.foo(-(5<caret>L))
.foo(7L)
.foo(-(5L));
}
}
@@ -0,0 +1,15 @@
class Test {
Test foo(long l) {
return this;
}
public static final long LONG = 5L;
{
Test t = new Test()
.foo(-LONG)
.foo(7L)
.foo(-LONG);
}
}