-
Notifications
You must be signed in to change notification settings - Fork 16
Remove guava dependency #265
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
Conversation
|
|
||
| dependencies { | ||
| annotationProcessor(libs.nullaway) | ||
| api(libs.jspecify) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jspecify appears to be the newer long term replacement for javax annotations, so switched to it. Previously we pulled these annotations in through Guava's jsr305 dependency.
| alias(libs.plugins.osdetector) | ||
| } | ||
|
|
||
| // Conformance tests aren't bound by lowest common library version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason the tests themselves couldn't target a later version of Java.
| }); | ||
| } | ||
|
|
||
| static boolean bytesContains(byte[] arr, byte[] subArr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main thing we got from Guava. Immutable types are great but for our usage we didn't require them anywhere. We could always (when upgrading to Java 11) switch to similar types on the List/Map methods.
| } | ||
|
|
||
| @Test | ||
| public void testBytesContains() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want some more coverage here in protovalidate, however I wanted to confirm the override worked after swapping out Guava.
No description provided.