Tagir Valeev
3dd5f3d6f0
[java-highlighting] Fixes for unnamed patterns in switch (IDEA-326939)
...
1. More uniform messages
2. Better anchor when var is defined in multiple patterns
3. Separate error messages for Java 20 and Java 21
GitOrigin-RevId: d7c6ab5b4445b7929bdcf200ac0838fc5431e803
2023-08-18 11:33:05 +00:00
Tagir Valeev
efbff7c99c
[java-highlighting] Move guard expression to switch label
...
Part of IDEA-326939 Support multi-pattern switch labels that define no variables
GitOrigin-RevId: c236438af58e1c74a2bf12a5985b33cedadb9cbb
2023-08-18 08:18:06 +00:00
Andrey Cherkasov
59d7b0c4c5
[java-highlighting] switch has both an unconditional pattern and a default label: false negative
...
IDEA-310722
GitOrigin-RevId: 1dfaeb0a35715757272dfaa4f10dc0e7ed628101
2023-01-17 18:02:27 +00:00
Andrey Cherkasov
12c6c8f2c5
[java] Highlight "Duplicate unconditional pattern" instead of "Label is dominated by a preceding case label"
...
IDEA-310687
GitOrigin-RevId: edc302b7042dd5cfc79903644dadcf3238bc97c2
2023-01-17 18:02:24 +00:00
Andrey Cherkasov
62ebc2616f
IDEA-310575 A total pattern is now called an unconditional pattern
...
GitOrigin-RevId: 306b7b66d45e6f92bc2629db93241630156e5164
2023-01-15 05:39:37 +00:00
Andrey Cherkasov
b56985873a
[java-highlighting] JEP 432: A 'case null, default' label dominates all other switch labels
...
A 'default' label dominates a case label with a case pattern, and it also dominates a case label with a 'null' case constant.
IDEA-309549
GitOrigin-RevId: 6877992c530e41a1200ea7c20d6405da4be0324b
2022-12-29 00:57:49 +00:00