Follow-up from issue
JEP 406 introduced a new preview feature in Java 17 called Pattern Matching for switch. Checkstyle added support for this in Issue #10848 and PR #11100. Since then, however, the feature got refined multiple times in:
In those refinements, some syntax was dropped and it is no longer compilable with Java 21. Checkstyle still supports this outdated grammar.
The goal of this issue is to remove ANTLR grammar for Pattern Matching for switch. The grammar was added in PR
Follow-up from issue
JEP 406 introduced a new preview feature in Java 17 called
Pattern Matching for switch. Checkstyle added support for this in Issue #10848 and PR #11100. Since then, however, the feature got refined multiple times in:In those refinements, some syntax was dropped and it is no longer compilable with Java 21. Checkstyle still supports this outdated grammar.
The goal of this issue is to remove ANTLR grammar for
Pattern Matching for switch. The grammar was added in PR