mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 17:52:27 +07:00
GitOrigin-RevId: cd7fde86062bcda7145dae7b98c661a64fbccb9d
12 lines
272 B
Java
12 lines
272 B
Java
import java.util.Set;
|
|
|
|
public class UnknownComparedToNullable {
|
|
native Object getObject(int x);
|
|
|
|
void test(int val) {
|
|
Object s1 = val < 0 ? null : getObject(val * 2);
|
|
Object s2 = getObject(val);
|
|
if (s1 != s2) {}
|
|
System.out.println(s2.hashCode());
|
|
}
|
|
} |