diff options
author | Colin Cross <ccross@android.com> | 2021-03-15 17:44:12 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2021-03-15 17:55:19 -0700 |
commit | 4ea5318b7f2eefc0f6915983ad83da53886cf966 (patch) | |
tree | da123b1b1f58194d90ea53ccd017f3d7325759c4 /StubLibraries.bp | |
parent | 1bec754c8b6724b5fc78995c374f3d8e40fb2075 (diff) |
Use stub-annotations to provide NonNull for hwbinder-stubs-docs
The annotations in srcs aren't doing anything because they are all
@hide. The only thing keeping hwbinder-stubs-docs compiling is
a hack in metalava that treats anything with
hwbinder-stubs-docs-stubs.srcjar.rsp in its input files as
effectively having annotations_enabled: false.
Remove the unnecessry srcs, and add stub-annotations, which contains
a stub definition for android.annotation.NonNull, to hwbinder.stubs.
None of the rest of the annotations in srcs are used in the
generated stubs.
Test: m hwbinder.stubs
Change-Id: I7ec9afb41ea9617f25d1dffd3382fed90997b751
Diffstat (limited to 'StubLibraries.bp')
-rw-r--r-- | StubLibraries.bp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/StubLibraries.bp b/StubLibraries.bp index d8661169526c..fd614a7e3dc3 100644 --- a/StubLibraries.bp +++ b/StubLibraries.bp @@ -422,10 +422,6 @@ droidstubs { name: "hwbinder-stubs-docs", srcs: [ "core/java/android/os/HidlSupport.java", - "core/java/android/annotation/IntDef.java", - "core/java/android/annotation/IntRange.java", - "core/java/android/annotation/NonNull.java", - "core/java/android/annotation/SystemApi.java", "core/java/android/os/HidlMemory.java", "core/java/android/os/HwBinder.java", "core/java/android/os/HwBlob.java", @@ -451,6 +447,7 @@ droidstubs { java_library_static { name: "hwbinder.stubs", sdk_version: "core_current", + libs: ["stub-annotations"], srcs: [ ":hwbinder-stubs-docs", ], |