summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2019-10-11 17:12:23 +0100
committerPaul Duffin <paulduffin@google.com>2019-10-23 11:43:38 +0100
commit5cd69e416bda48d41863bbae5f002de4ade5f956 (patch)
tree64a9f6640d189162695f93e0e1f29f8bda989745 /annotations/generate_annotated_java_files.py
parent6840757abf14a399b8980068b2133393e2b22324 (diff)
Make art module public stubs include nullability annotations
Passes --include-annotation flag to metalava to cause it to generate androidx nullability annotations in the output stubs. Creates a special set of system modules that includes a minimal set of self consistent classes that can be used in a system module (i.e. must include java.lang classes) as well as android/androidx nullability annotations. The set of classes was constructed by starting with the classes in java.lang and then adding all of their transitive dependencies. That is needed to build the art module public stubs + annotations. Without it the compiler cannot see the annotations when targeting language level >= 1.9. Uses the stub-annotations which is a copy of android and androidx annotations provided by metalava that are used by the public SDK stubs. Bug: 142546485 Test: m checkbuild Change-Id: I77443b29a06d55631764e3447b2b81315527a59e
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions