Merge "Use --revert-annotation instead of --hide-annotation" into main am: 550a0dab0d
am: f384a08950
am: 0e02a14a2b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2870808 Change-Id: If0e5da2148bc51ae4b952f47f92f6b941cbeb7bc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -53,7 +53,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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user