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

Remove usages of Animal Sniffer #38

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

basil
Copy link
Contributor

@basil basil commented Aug 22, 2023

Fixes #26 by removing any usages of Animal Sniffer annotations. The only annotation that exists in Animal Sniffer is org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement, so that is the only annotation we remove. We do this only for the org.openrewrite.jenkins.ModernizePlugin recipe and not the org.openrewrite.jenkins.ModernizePluginForJava8 recipe because Animal Sniffer is still used in Java 8. We tested this by running org.openrewrite.jenkins.ModernizePlugin against jenkinsci/active-directory-plugin@c493ebc and verifying that the Animal Sniffer annotation and its import were successfully removed. We did not add any test coverage in this repository because org.openrewrite.java.RemoveAnnotation is upstream functionality that is already tested upstream, and similar usages in this repository (e.g., the usage of org.openrewrite.maven.ChangeDependencyGroupIdAndArtifactId to change mockito-inline to mockito-core a few lines below this change) don't have test coverage in this repository either.

@sghill
Copy link
Collaborator

sghill commented Aug 22, 2023

Thanks for the PR!

@sghill sghill merged commit 21932f3 into openrewrite:main Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Remove any usages of Animal Sniffer
2 participants