Merge "Use --revert-annotation instead of --hide-annotation" into main am: 550a0dab0d am: f384a08950
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2870808 Change-Id: I9078057e5c26906bc7e9e8df4cdfe023957ae3b1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
0e02a14a2b
2 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ var (
|
|||
MetalavaAnnotationsWarningsFlags = strings.Join(metalavaAnnotationsWarningsFlags, " ")
|
||||
|
||||
metalavaHideFlaggedApis = []string{
|
||||
"--hide-annotation",
|
||||
"--revert-annotation",
|
||||
"android.annotation.FlaggedApi",
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -393,5 +393,5 @@ func TestDroidstubsHideFlaggedApi(t *testing.T) {
|
|||
m := result.ModuleForTests("foo", "android_common")
|
||||
manifest := m.Output("metalava.sbox.textproto")
|
||||
cmdline := String(android.RuleBuilderSboxProtoForTests(t, result.TestContext, manifest).Commands[0].Command)
|
||||
android.AssertStringDoesContain(t, "flagged api hide command not included", cmdline, "--hide-annotation android.annotation.FlaggedApi")
|
||||
android.AssertStringDoesContain(t, "flagged api hide command not included", cmdline, "--revert-annotation android.annotation.FlaggedApi")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue