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

Archunit rule to avoid guava #845

Merged
merged 7 commits into from
Dec 18, 2024
Merged

Archunit rule to avoid guava #845

merged 7 commits into from
Dec 18, 2024

Conversation

gjoseph
Copy link
Owner

@gjoseph gjoseph commented Dec 18, 2024

No description provided.

* Java 15: String.formatted
* Java 21: SequencedCollection.getFirst() and .getLast()
* Disable rule that adds a dependency to jakarta-annotation because the only javax.annotation we use are @NotNull and @nullable which are _not_ in that package
* Guava: some changes not optimal; because it respects our use of a HashSet were in most cases, we didn't really care, except for the conciseness of Guava's factory method. Will change this further to use e.g Set.of(...)
…tations

* Would be added by org.openrewrite.java.migrate.javax.AddCommonAnnotationsDependencies via UpgradeToJava21
* See openrewrite/rewrite#4211
* ... where we don't really care about the specifics of which type of Set is instantiated
@gjoseph gjoseph marked this pull request as ready for review December 18, 2024 13:31
@gjoseph gjoseph enabled auto-merge December 18, 2024 13:31
@gjoseph gjoseph merged commit 032dca0 into main Dec 18, 2024
10 checks passed
@gjoseph gjoseph deleted the archunit-rule-to-avoid-guava branch December 18, 2024 13:32
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.

1 participant