summaryrefslogtreecommitdiff
path: root/ojluni/annotations/sdk/nullability/java/lang/Class.annotated.java
Commit message (Collapse)AuthorAgeFilesLines
* Make Class.getPackageName public.Nicolas Geoffray2020-12-111-0/+2
| | | | | | | Import from 11+28. Test: PackageTest, OldClassTest. Change-Id: I1d65c1e1b49a24fd67eb4f5f8378213ba9304aba
* Remove metalava-manual from droidstubs generationPaul Duffin2019-11-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | 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
* Add missing nullability annotations to java.lang.Pete Gillin2018-10-231-1/+1
| | | | | | | | | | | | | 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
* Move .annotated.java files into an 'sdk' subdirectory.Pete Gillin2018-09-181-0/+170
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