mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
Fixes IDEA-336123 "Constant values" fix produces red code when pattern variable is removed GitOrigin-RevId: 7faf8dd77569c21d69a9a7226d6db1b0097f9231
10 lines
180 B
Java
10 lines
180 B
Java
// "Simplify 'obj instanceof String str' to true" "true"
|
|
class Test {
|
|
void test(Object obj) {
|
|
if (obj instanceof String str) {
|
|
if (str.isEmpty()) {
|
|
|
|
}
|
|
}
|
|
}
|
|
} |