[not for review yet] deps: changing jsr305 to jspecify#3191
Conversation
Preparation for b/341380807 Following https://jspecify.dev/docs/using/#if-your-code-already-uses-jsr-305-annotations
|
The build failed: |
|
ci / build(8) for gapic-generator-java failed: https://github.com/googleapis/sdk-platform-java/actions/runs/10837827237/job/30074668962?pr=3191
I need to add jspecify dependency in the Bazel build too. |
|
"ci / build(8) except for gapic-generator-java" passed. |
|
There are differnces in the AutoValue generated code. https://gist.github.com/suztomo/0dc82b1b04d9364ecb35421f8b65cc63 Update: They are irrelevant. AutoValue is adding the Nullable for the builder fields that can be null at initialization when type annotation is found. |
|
|



Preparation for b/341380807. Following https://jspecify.dev/docs/using/#if-your-code-already-uses-jsr-305-annotations
com.google.code.findbugs:jsr305toorg.jspecify:1.0.0in pom.xmlimport javax.annotation.Nullable;toimport org.jspecify.annotations.Nullable;import javax.annotation.Nonnull;toimport org.jspecify.annotations.NonNull;and change@NonnulltoNonNull.