mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
ReplaceCastWithVariableAction: support parentheses
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace '(FooBar)foo' with 'foobar'" "true"
|
||||
// "Replace '(FooBar)(foo)' with 'foobar'" "true"
|
||||
|
||||
class FooBar {
|
||||
public int baz;
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// "Replace '(FooBar)foo' with 'foobar'" "true"
|
||||
// "Replace '(FooBar)(foo)' with 'foobar'" "true"
|
||||
|
||||
class FooBar {
|
||||
public int baz;
|
||||
@@ -6,6 +6,6 @@ class FooBar {
|
||||
int method(Object foo) {
|
||||
foobar = null;
|
||||
FooBar foobar = (FooBar)foo;
|
||||
return ((FooBar<caret>)foo).baz;
|
||||
return ((FooBar<caret>)(foo)).baz;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user