Skip to content

Issue #15033: Add RightCurly test inputs for switch pattern matching with when guards#19129

Merged
romani merged 1 commit into
checkstyle:masterfrom
MiniPiku:issue-15033-rightcurly-switch-when-test
Mar 8, 2026
Merged

Issue #15033: Add RightCurly test inputs for switch pattern matching with when guards#19129
romani merged 1 commit into
checkstyle:masterfrom
MiniPiku:issue-15033-rightcurly-switch-when-test

Conversation

@MiniPiku

@MiniPiku MiniPiku commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

Adds test inputs to cover Java switch pattern matching with when guards
for the RightCurly check.

The behavior is already handled under the LITERAL_CASE token, so no
changes to the check implementation were required.
This PR only adds test coverage.

Closes #15033

@MiniPiku MiniPiku force-pushed the issue-15033-rightcurly-switch-when-test branch from 590e26c to eda3362 Compare March 5, 2026 19:16
@MiniPiku MiniPiku force-pushed the issue-15033-rightcurly-switch-when-test branch from eda3362 to daacd90 Compare March 5, 2026 19:25
@MiniPiku

MiniPiku commented Mar 5, 2026

Copy link
Copy Markdown
Contributor Author

CI failures are unrelated

@romani romani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot

@romani romani merged commit 6c5d8f4 into checkstyle:master Mar 8, 2026
120 of 123 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Check Support for Java 21 Pattern Matching for Switch Syntax: RightCurly

2 participants