Commit Graph

14 Commits

Author SHA1 Message Date
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
Mikhail Pyltsin
2ab3cddf1f [java-highlighting] 'case default' is the incorrect syntax, and it was replaced with the proper 'default' syntax.
GitOrigin-RevId: d69adf33903bda7bb28090145fc57b690438281b
2023-07-14 16:14:47 +00:00
Mikhail Pyltsin
ab14666e4e [java-highlighting] 'case default' is the incorrect syntax, and it was replaced with the proper 'default' syntax.
GitOrigin-RevId: 72f8e7f6c9080db7cb0b89c0ed876eb949171e8f
2023-07-14 16:14:45 +00:00
Mikhail Pyltsin
4bc43b46f4 [java-highlighting] IDEA-323955 Record patterns support available only for Java 20 preview. Fix compiler errors and tests
GitOrigin-RevId: 5f856519e56e61818e95cf63766fb6a54c6283ad
2023-07-05 12:09:22 +00:00
Andrey Cherkasov
0d7acf9957 [java-intentions] Split switch label should keep 'default' branch last
IDEA-283673

GitOrigin-RevId: 65276d0c55cb5b87f68f39caaacf6bebf6bb02a3
2023-01-04 18:41:08 +00:00
Andrey.Cherkasov
600967c68e [java-highlighting] Provide Split values of 'switch' branch quick-fix for "Illegal fall-through from/to a pattern" error
IDEA-273885

GitOrigin-RevId: 49ea03660bc8079eb93b76c2ace9264ae1c2cc7a
2022-09-01 09:52:26 +00:00
Tagir Valeev
7e1064ea3c [java-intentions] More preview tests; minor fixes
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
2022-07-29 17:55:13 +00:00
Andrey.Cherkasov
9aa6ff59a6 [java-intentions] SplitSwitchBranchWithSeveralCaseValuesAction: add tests with pattern matching
GitOrigin-RevId: c4684094dc89266895a385cc5095416dc0dab77c
2021-07-21 15:58:43 +00:00
Andrey.Cherkasov
ddf363e544 [java-inspections] SplitSwitchBranchWithSeveralCaseValuesAction: support pattern matching
GitOrigin-RevId: 294d9dcaa29b1f2f54ce92c5f66b3e0050fd7562
2021-07-20 13:03:01 +00:00
Roman Ivanov
6371cde54c [java] fix usages after changing PSI structure
earlier we had PsiExpressionList, now it is PsiCaseLabelElementList

GitOrigin-RevId: 14b06afe93d631d12048539704cd6e71efc5d4ef
2021-06-11 17:35:47 +00:00
Pavel Dolgov
d9412eba69 Java: Fixed typos in test data file names (IDEA-203895) 2019-02-06 18:40:08 +03:00
Pavel Dolgov
cf34272833 Java: More tests for intention to split switch branch with multiple values into separate branches (IDEA-203895) 2019-02-04 12:33:41 +03:00
Pavel Dolgov
4c260c88bc Java: Improvements in intention to split switch branch with multiple values into separate branches (IDEA-203895) 2019-02-01 13:11:28 +03:00
Pavel Dolgov
1bb82a7f5c Java: Intention to split switch branch with multiple values into separate branches (IDEA-203895) 2019-01-30 15:52:26 +03:00