| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The metalava-manual droiddoc_exported_dir provides some annotations
(in tools/metalava/manual/master.txt) that are merged into libcore
stubs. They were provided in the API signature file because metalava
does not support TYPE_USE annotations correctly when specified on
Java code and so adding the libcore.util.Nullable/NonNull TYPE_USE
annotations to the appropriate file in the
ojluni/annotations/sdk/nullability directory did not work because
they were discarded.
This change works around that issue by allowing
libcore.util.Nullable/NonNull to be specified on other element types
like methods and fields. That allows them to be used in places where
TYPE_USE annotations are not allowed and metalava merges them
in correctly.
Bug: 111116803
Test: m checkbuild
tested that this does not change offline-sdk-docs
Change-Id: I6fb0cfcfe158a61537b6706ef97f4f2c4359fe7a
|