commit | 653c770c477771eed21a8dd3cac721daf9cfea40 | [log] [tgz] |
---|---|---|
author | Paul Duffin <paulduffin@google.com> | Wed Mar 19 22:04:27 2025 +0000 |
committer | Paul Duffin <paulduffin@google.com> | Wed Mar 19 23:54:15 2025 +0000 |
tree | e74ee47244227348964b856bf3f80cf98068173c | |
parent | c79fa9c9724a7a2e52f88d4a09d4a1a43914a55d [diff] |
Update as AnnotationAttribute.value is now legacyValue Previously, this used `AnnotationAttribute.value` but that has just been renamed to `legacyValue`. Bug: 354633349 Test: atest check-flagged-apis-test Change-Id: I97fdc0eadbecff10bfedaa71cabd0ae97de7fb83
diff --git a/tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt b/tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt index dd7c7de..25cba9c 100644 --- a/tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt +++ b/tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt
@@ -292,7 +292,7 @@ return item.modifiers .findAnnotation("android.annotation.FlaggedApi") ?.findAttribute("value") - ?.value + ?.legacyValue ?.let { Flag(it.value() as String) } } }