diff options
author | Anton Hansson <hansson@google.com> | 2020-02-08 12:15:25 +0000 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2020-02-12 17:12:06 +0000 |
commit | 7f94169e56b32cb83b2d87c4d738c41b78b07f6e (patch) | |
tree | 23fc21eca023744795c8cdb5a68e429700828f06 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 3939d29c0bd85c7c0798583787d8fb9135578c5b (diff) |
Add @Nullable and @NonNull to module API
These two annotations are already in the public/system stubs,
but are re-written to be package private instead of public. This
makes them inaccessible to libs building against these stubs.
When setting sdk_version:<X>, the stubs of X will appear before any
other libraries on the classpath. This also makes it impossible for
modules to add Nullable annotations of their own when setting sdk_version.
Exposing these annotations as public in the module stubs makes it
possible for modules using these annotation to specify an sdk_version.
Bug: 146758669
Test: m
Test: downstream CLs using sdk_version:module_current
Change-Id: I71fb766d02f833ed9a1b3a7dbfbc1c8118882b30
Merged-In: I71fb766d02f833ed9a1b3a7dbfbc1c8118882b30
(cherry picked from commit c8fc90a0c2b04a5f6f5e6006155ca1e9a09db4e3)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions