Mikhail Pyltsin
0f76470f19
[java-inspections] IDEA-333452 Duplicate branch on switch. Improve work with comments
...
- now it can be suppressed properly
- show info level if the branches have different comments
GitOrigin-RevId: 5f1c5c0a67165b949b894d2d81c53800ad3b4b22
2023-09-27 19:37:38 +00:00
Tagir Valeev
623ee94480
[java-inspections] DuplicateBranchesInSwitchInspection improvements
...
1. Do not merge pattern with non-pattern branch
2. Colon labels with guards should not be merged into a single label
Leftovers after IDEA-326939
GitOrigin-RevId: 9fc54e643eda666771af2fc017dbef7d925dd76b
2023-09-19 01:24:53 +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
4cd808e3b0
[java-inspections] DuplicateBranchesInSwitch: fix a comment
...
IJ-CR-101312
GitOrigin-RevId: 11e80499c55677cea9ba2c2c3d1dc0dd0f83124d
2023-03-01 18:12:37 +00:00
Andrey Cherkasov
e008c6522f
[java-inspections] DuplicateBranchesInSwitch: adapt the inspection to Java 20
...
IDEA-310260
GitOrigin-RevId: ce07977550e3a5c15d63f0a6eeed1d7341c74164
2023-01-15 05:39:32 +00:00
Andrey.Cherkasov
6cd537d4e0
[java-inspections] DuplicateBranchesInSwitch: suggest merge instead of delete for 'null' cases
...
IDEA-301358
GitOrigin-RevId: 292f93534df154e470ebb4b78f82ea67b58ebb5e
2022-09-07 15:33:06 +00:00
Bas Leijdekkers
e2bcaddbe3
java inspectin: merge switch case label element lists when possible
...
in "Duplicate branches in 'switch'" inspection fix
GitOrigin-RevId: 7b22a3409f5d9237f432ab3dd35f27cacfbd7737
2022-07-20 18:53:31 +00:00
Pavel Dolgov
e9fca7074f
Java: Highlight duplicate values and branches in enhanced 'switch' (IDEA-202629)
2019-01-16 17:18:48 +03:00
Pavel Dolgov
63ffc6782b
Java: When merging identical branches of 'switch' statement keep the default branch the last (IDEA-204134)
2018-12-13 16:33:44 +03:00
Pavel Dolgov
d3a85ece73
Java: Highlight identical branches in 'switch' statement, quick fix implemented (IDEA-181304)
2018-11-09 12:44:27 +03:00