mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
[java-highlighting] IDEA-324586 Highlight duplicated values with casts in java 21. Fix for null
GitOrigin-RevId: 85c0a0e8608267502c300b150fa9c5df23521efb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
45d3ec5af9
commit
d64809acc7
@@ -9,5 +9,10 @@ class DuplicatedWithCast {
|
||||
case <error descr="Duplicate label '127'">b</error> -> System.out.println("b=" + b + ";");
|
||||
case <error descr="Duplicate label '127'">127</error>-> System.out.println("sweet spot");
|
||||
}
|
||||
switch (args[0]) {
|
||||
case <error descr="Duplicate label 'null'">null</error> -> System.out.println("null1");
|
||||
case <error descr="Duplicate label 'null'">null</error> -> System.out.println("null2");
|
||||
default -> System.out.println("default");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user