mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 15:50:49 +07:00
IDEA-302310 GitOrigin-RevId: 2b364e79c3b2f43fe4729677491c3676ba39d493
12 lines
220 B
Java
12 lines
220 B
Java
// "Replace '(String) o' with 's1'" "true-preview"
|
|
|
|
class C {
|
|
void foo(Object o) {
|
|
String s1 = (String) o;
|
|
if (Math.random() > 0.5) {
|
|
o = null;
|
|
return;
|
|
}
|
|
String s2 = (String) o<caret>;
|
|
}
|
|
} |