mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract variable: ensure replace all occurrences survive parenthesis around value (IDEA-122041)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
|
||||
Test foo(long l) {
|
||||
return this;
|
||||
}
|
||||
|
||||
{
|
||||
Test t = new Test()
|
||||
.foo(-(5<caret>L))
|
||||
.foo(7L)
|
||||
.foo(-(5L));
|
||||
}
|
||||
}
|
||||
+15
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user