mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
Fixes IDEA-323850 Null-check and 'instanceof' combination could be simplified GitOrigin-RevId: 20f5706ac06d6b1b0771b744fc20898de2d452d1
11 lines
278 B
Java
11 lines
278 B
Java
// "Merge 'else if' statement inverting the second condition" "true"
|
|
|
|
class Test {
|
|
String[] foo(Object[] value, String[] defaultValue) {
|
|
if (value == null || !(value instanceof String[])) {
|
|
return defaultValue;
|
|
} else {
|
|
return (String[]) value;
|
|
}
|
|
}
|
|
} |