From 01ff6b243febc199ffe718a49374af954c6dbeff Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Wed, 27 May 2020 11:26:16 +0100 Subject: [PATCH] Enable annotations for framework stubs Keeps Nullable and other source retention annotations in the stubs. Bug: 157010342 Test: diff_stubs.sh Change-Id: I4fc66d607276ff885947489afd63e1370ec85939 --- apex/Android.bp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apex/Android.bp b/apex/Android.bp index de4b24aa274c7..c1715a002d6d1 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: [