mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
14 lines
384 B
Java
14 lines
384 B
Java
/*
|
|
Value is always true (s instanceof CharSequence; line#11)
|
|
An object type is exactly String which is a subtype of CharSequence (s; line#11)
|
|
Type of 's' is known from line #10 (s instanceof String; line#10)
|
|
*/
|
|
import java.util.List;
|
|
|
|
class Test {
|
|
void test(Object s) {
|
|
if (s instanceof String) {
|
|
if (<selection>s instanceof CharSequence</selection>) {}
|
|
}
|
|
}
|
|
} |