summaryrefslogtreecommitdiff
path: root/apex/Android.bp
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-05-27 11:26:16 +0100
committerAnton Hansson <hansson@google.com>2020-05-27 11:26:16 +0100
commit01ff6b243febc199ffe718a49374af954c6dbeff (patch)
treebcbdfb845330eb4ab6309c4a16439596b93dc368 /apex/Android.bp
parentcc0b494bb01f3a7f89fd2782673e430f53ba04b3 (diff)
Enable annotations for framework stubs
Keeps Nullable and other source retention annotations in the stubs. Bug: 157010342 Test: diff_stubs.sh Change-Id: I4fc66d607276ff885947489afd63e1370ec85939
Diffstat (limited to 'apex/Android.bp')
-rw-r--r--apex/Android.bp2
1 files changed, 2 insertions, 0 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index de4b24aa274c..c1715a002d6d 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -100,6 +100,8 @@ java_defaults {
// Configure framework module specific metalava options.
droiddoc_options: [mainline_stubs_args],
+ annotations_enabled: true,
+
// The stub libraries must be visible to frameworks/base so they can be combined
// into API specific libraries.
stubs_library_visibility: [