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