Skip to content
Commit 86463c80 authored by Elliot Sisteron's avatar Elliot Sisteron
Browse files

Let @NonNull be the default.

Use package-info.java with a new `@NonNullByDefault` annotation
to specify that `@NonNull` is the default, and stop relying on
sprinkling our own `@NonNull` annotations everywhere instead.

This follows the generic Google recommendation and follows the approach
taken by some teams:
https://engdoc.corp.google.com/eng/doc/devguide/java/practices/null.md#legacy
go/android-media-solutions-coding-conventions#use-nullable

We still rely on `@NonNull` for all of our API surface though, as per
go/android-api-guidelines#annotations-nullability

Bug: 260989630
Test: builds
Change-Id: I99ab8f3d94875c8fceca7c9f968b7d8d652d0999
parent cc1cd50b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment