mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 17:51:09 +07:00
Also, support the same in SimplifyBooleanExpressionFix (IDEA-336123) GitOrigin-RevId: 240383f6ca67d8b7734ac51a6fe8781538e4f254
8 lines
213 B
Java
8 lines
213 B
Java
// "Simplify 'obj instanceof CharSequence cs' to true" "true"
|
|
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof String) {
|
|
if (obj instanceof CharSequence <caret>cs && cs.length() > 0) {}
|
|
}
|
|
}
|
|
} |