| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Import from 11+28.
Test: PackageTest, OldClassTest.
Change-Id: I1d65c1e1b49a24fd67eb4f5f8378213ba9304aba
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This fills in all the missing annotations from partially-annotated
classes in this package found during validation.
Note that most of these are in the method/parameter annotation form
which metalava currently expects. The exception is on arrays, where
they are in strict type annotation form for forwards compatibility.
Bug: 64930165
Test: treehugger
Change-Id: I20e296ec6ce87dba89602958bee7e69f2e67f42e
|
|
|
All of the current annotations are intended for use in the SDK build,
and live at ojluni/annotations. In order to make room for annotated
stubs for other purposes, this change moves them. There is a README
that describes the intended directory structure. (N.B. Validation of
the nullability stubs is not landed yet but is described here in
anticipation.)
Bug: 115746226
Test: `make api-stubs-docs`
Change-Id: I7cfbdb5dc9888f796eb1f384155fce33125a7d9e
|