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

Do not change visibility in UpdateTestAnnotation; use TestsShouldNotBePublic instead #442

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

magicwerk
Copy link
Contributor

What's changed?

Fixes #441

UpdateTestAnnotation does not change the visibility modifier anymore.
I updated the test as needed.
I removed the following 2 tests in UpdateTestAnnotationTest as they make no sense after the change:
privateToPackageVisibility()
protectedToPackageVisibility()

@timtebeek timtebeek changed the title fix-issue-441 Do not change visibility in UpdateTestAnnotation; use TestsShouldNotBePublic instead Dec 18, 2023
@timtebeek timtebeek self-requested a review December 18, 2023 11:05
@timtebeek timtebeek added the bug Something isn't working label Dec 18, 2023
Copy link
Contributor

@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.

Thanks a lot for taking this on @magicwerk ! You can try it out from our snapshot versions shortly; we'll follow up with a release in the next week or so.

@timtebeek timtebeek merged commit e7f0148 into openrewrite:main Dec 18, 2023
1 check passed
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.

Make visibility modifier change by UpdateTestAnnotation optional
2 participants