mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java redundant cast: cleanup: visitor finally inverted
GitOrigin-RevId: 8b4449e6d9163c24b046aad9065e5ec055d6d62c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
78891be4bb
commit
1bc4cda08e
+8
@@ -5,5 +5,13 @@ class RedundantCast {
|
||||
Object o = switch (matchType) {
|
||||
default -> (Predicate<Object>) target -> target == null;
|
||||
};
|
||||
Predicate<Object> o1 = switch (matchType) {
|
||||
default -> (<warning descr="Casting 'target -> {...}' to 'Predicate<Object>' is redundant">Predicate<Object></warning>) target -> target == null;
|
||||
};
|
||||
|
||||
Predicate<Object> o2 = switch (matchType) {
|
||||
default:
|
||||
yield (<warning descr="Casting 'target -> {...}' to 'Predicate<Object>' is redundant">Predicate<Object></warning>) target -> target == null;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user