mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
IDEA-198546 "Replace cast with variable" inserts unresolved reference
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Replace '(String)o' with 's'" "false"
|
||||
|
||||
class C {
|
||||
void foo(Object o) {
|
||||
if (o instanceof String) {
|
||||
String s = (String)o;
|
||||
}
|
||||
if (o instanceof String) {
|
||||
String t = (Stri<caret>ng)o;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user