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