redundant cast: support switch labels syntax (IDEA-226175)

GitOrigin-RevId: afdf87f8692f610ee87b9892c61f9ab97986bab8
This commit is contained in:
Anna Kozlova
2019-11-08 09:06:35 +00:00
committed by intellij-monorepo-bot
parent 31b347b263
commit f45758ac79
3 changed files with 21 additions and 0 deletions
@@ -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;
};
}
}