From 7d74e595bbc97b6ddfd54ec710b04423978c9df2 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 27 May 2020 11:26:16 +0100 Subject: Enable annotations for framework stubs Keeps Nullable and other source retention annotations in the stubs. Bug: 157010342 Test: diff_stubs.sh Change-Id: I4fc66d607276ff885947489afd63e1370ec85939 Merged-In: I4fc66d607276ff885947489afd63e1370ec85939 (cherry picked from commit 01ff6b243febc199ffe718a49374af954c6dbeff) --- apex/Android.bp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apex/Android.bp b/apex/Android.bp index f34ecbd79108..5ee8a638f540 100644 --- a/apex/Android.bp +++ b/apex/Android.bp @@ -107,6 +107,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: [ -- cgit v1.2.3-59-g8ed1b