From cd93aeb947fe79c191ef2f7dde1853571c40c236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Kongstad?= Date: Thu, 2 May 2024 10:19:18 +0200 Subject: [PATCH] check-flagged-apis: suppress unused variable warning Bug: 334870672 Test: m check-flagged-apis # verify no Lint warnings Change-Id: If4fb93703f0f0bf3f27e6ec052cf488796bd717e --- .../check-flagged-apis/src/com/android/checkflaggedapis/Main.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e15e7fa6eb..e8b1b65fce 100644 --- a/tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt +++ b/tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt @@ -276,7 +276,7 @@ internal fun parseApiVersions(input: InputStream): Set { if (methodSignatureParts.size != 3) { throw Exception("Bad XML: method signature '$methodSignature'") } - var (methodName, methodArgs, methodReturnValue) = methodSignatureParts + var (methodName, methodArgs, _) = methodSignatureParts val packageAndClassName = requireNotNull(method.getParentNode()?.getAttribute("name")) { "Bad XML: top level element, or element missing name attribute"