Skip to content

Conversation

@mbruggmann
Copy link
Contributor

EnumSet doesn't have the equivalent of Set.of(arr[]). For now, let's just skip those cases and bail out.

Fixes #516.

EnumSet doesn't have the equivalent of `Set.of(arr[])`. For now,
let's just skip those cases and bail out.
@timtebeek timtebeek self-requested a review July 26, 2024 13:35
@timtebeek timtebeek added the bug Something isn't working label Jul 26, 2024
@mbruggmann mbruggmann marked this pull request as ready for review July 26, 2024 13:39
Copy link
Member

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Great to see, thanks a lot! Nice to have this quick turn around on a report & fix.

@mbruggmann
Copy link
Contributor Author

Likewise, thanks @timtebeek!

@timtebeek timtebeek merged commit bc0d2eb into openrewrite:main Jul 26, 2024
@mbruggmann mbruggmann deleted the enumset-varargs branch July 26, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

UseEnumSetOf rewrite breaks for varargs parameter

2 participants