mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 08:00:18 +07:00
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
18 lines
568 B
Java
18 lines
568 B
Java
/*
|
|
Cast may fail ((Integer)x; line#16)
|
|
An execution might exist where:
|
|
An object type is exactly Double which is not a subtype of Integer (x; line#16)
|
|
Type of 'x' is known from line #14 (x instanceof Double; line#14)
|
|
or an object type is exactly String which is not a subtype of Integer (x; line#16)
|
|
Type of 'x' is known from line #12 (x instanceof String; line#12)
|
|
*/
|
|
|
|
class Test {
|
|
void test(Object x) {
|
|
if (x instanceof String) {
|
|
}
|
|
if (x instanceof Double) {
|
|
}
|
|
System.out.println(<selection>(Integer)x</selection>);
|
|
}
|
|
} |