summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2025-03-20 00:12:47 +0000
committer Paul Duffin <paulduffin@google.com> 2025-03-20 00:14:19 +0000
commit788897ef0680b00c8f5744650aa42614290b5690 (patch)
tree2e7ab109380226d9b696303bafa85bd49574a4b4
parent23ba06663f4cc42d971c616a0df3de047d2cd6dc (diff)
Update as AnnotationAttribute.value is now legacyValue
Previously, this used `AnnotationAttribute.value` but that has just been renamed to `legacyValue`. Bug: 354633349 Test: m extract-flagged-apis Change-Id: Iaaee754c41fedd16f8c9432a21ec8339025c0a03
-rw-r--r--api/coverage/tools/ExtractFlaggedApis.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/coverage/tools/ExtractFlaggedApis.kt b/api/coverage/tools/ExtractFlaggedApis.kt
index 0a3ae4f790b0..e50f7f876f51 100644
--- a/api/coverage/tools/ExtractFlaggedApis.kt
+++ b/api/coverage/tools/ExtractFlaggedApis.kt
@@ -88,6 +88,6 @@ fun getFlagAnnotation(item: Item): String? {
return item.modifiers
.findAnnotation("android.annotation.FlaggedApi")
?.findAttribute("value")
- ?.value
+ ?.legacyValue
?.value() as? String
}