Skip to content

Conversation

@pkwarren
Copy link
Member

No description provided.

@pkwarren pkwarren requested review from smaye81 and timostamm April 20, 2025 17:27

dependencies {
annotationProcessor(libs.nullaway)
api(libs.jspecify)
Copy link
Member Author

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.
Copy link
Member Author

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) {
Copy link
Member Author

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() {
Copy link
Member Author

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.

@pkwarren pkwarren merged commit 8c53335 into sayers/validation_upgrades Apr 21, 2025
4 checks passed
@pkwarren pkwarren deleted the pkw/remove-guava-dep branch April 21, 2025 18:01
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