mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-30 05:07:55 +07:00
f45758ac79
GitOrigin-RevId: afdf87f8692f610ee87b9892c61f9ab97986bab8
9 lines
220 B
Java
9 lines
220 B
Java
import java.util.function.Predicate;
|
|
|
|
class RedundantCast {
|
|
private static void foo(final int matchType) {
|
|
Object o = switch (matchType) {
|
|
default -> (Predicate<Object>) target -> target == null;
|
|
};
|
|
}
|
|
} |