mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
redundant cast: support switch labels syntax (IDEA-226175)
GitOrigin-RevId: afdf87f8692f610ee87b9892c61f9ab97986bab8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
31b347b263
commit
f45758ac79
+9
@@ -0,0 +1,9 @@
|
||||
import java.util.function.Predicate;
|
||||
|
||||
class RedundantCast {
|
||||
private static void foo(final int matchType) {
|
||||
Object o = switch (matchType) {
|
||||
default -> (Predicate<Object>) target -> target == null;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user