Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MethodMatcher syntax for NEW_ARRAY_LIST_MATCHER #67

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

tobli
Copy link
Contributor

@tobli tobli commented Dec 4, 2024

The MerhodMatcher syntax used in the NoCollectionMutation example for NEW_ARRAY_LIST_MATCHER is incorrect and prints an error while running unit tests. I suspect <init> was an earlier syntax for <constructor>.

The MerthodMatcher syntax used in the NoCollectionMutation example for NEW_ARRAY_LIST_MATCHER is incorrect and prints an error while running unit tests. I suspect `<init>` was an earlier syntax for `<constructor>`.
@timtebeek
Copy link
Contributor

You're absolutely right. Thanks for the quick fix!

For reference: here's the method patterns we support:
https://docs.openrewrite.org/reference/method-patterns#examples

@timtebeek timtebeek merged commit cdd4861 into moderneinc:main Dec 4, 2024
1 of 2 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.

2 participants