mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: insert cast when duplicate with changed type processed (IDEA-98396)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
|
||||
void foo(Object x) {
|
||||
if (x instanceof String) x = ((String)x).substring(1);
|
||||
if (x instanceof String) x = <selection>((String)x).substring(1)</selection>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user