GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added unit test for minimum switch cases with bitwise operation. by LakshyaKwatra · Pull Request #596 · openrewrite/rewrite-static-analysis

Conversation

@LakshyaKwatra

@LakshyaKwatra LakshyaKwatra commented Jun 18, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What's changed?

  • Added a unit test for this issue: MinimumSwitchCases breaks build - does not add parentheses around boolean expression #284

What's your motivation?

While exploring this issue: #284, I realized that the issue is working fine now, so just added a test case for sanity and coverage.

Anyone you would like to review specifically?

@timtebeek

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Lakshya Kwatra Lakshya Kwatra
Added unit test for minimum switch cases with bitwise operation.
573a32c
@moderne-meeseeks moderne-meeseeks Bot added this to OpenRewrite Jun 18, 2025
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Jun 18, 2025
@LakshyaKwatra LakshyaKwatra mentioned this pull request Jun 18, 2025
MinimumSwitchCases breaks build - does not add parentheses around boolean expression #284
Closed
@timtebeek timtebeek linked an issue Jun 18, 2025 that may be closed by this pull request
MinimumSwitchCases breaks build - does not add parentheses around boolean expression #284
Closed
timtebeek
timtebeek approved these changes Jun 18, 2025
View reviewed changes

@timtebeek timtebeek left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks a lot for the help here clearing out the backlog, and guarding against regression.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

LakshyaKwatra reacted with laugh emoji
All reactions
  • 😄 1 reaction
@github-project-automation github-project-automation Bot moved this from In Progress to Ready to Review in OpenRewrite Jun 18, 2025
@timtebeek
timtebeek merged commit 51df129 into openrewrite:main Jun 18, 2025
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@timtebeek timtebeek timtebeek approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

OpenRewrite
Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

MinimumSwitchCases breaks build - does not add parentheses around boolean expression

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@LakshyaKwatra @timtebeek
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.