summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2025-03-19 23:53:02 +0000
committer Paul Duffin <paulduffin@google.com> 2025-03-19 23:54:15 +0000
commitc79fa9c9724a7a2e52f88d4a09d4a1a43914a55d (patch)
tree499b6364d06a43b3c99f8c99449145d719417094
parent3015ba319513268918a8e9d337522689c25aa1dc (diff)
Reformat to avoid upload issues when making future changes
Bug: 354633349 Test: atest check-flagged-apis-test Change-Id: I5295935eb3b57466c1dde404a91df25cc3beda7a
-rw-r--r--tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt6
1 files changed, 3 insertions, 3 deletions
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 d323c200da..dd7c7de25d 100644
--- a/tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt
+++ b/tools/check-flagged-apis/src/com/android/checkflaggedapis/Main.kt
@@ -282,7 +282,8 @@ internal fun parseApiSignature(path: String, input: InputStream): Set<Pair<Symbo
callable.parameters().joinTo(this, separator = "") { it.type().internalName() }
append(")")
}
- val symbol = Symbol.createMethod(callable.containingClass().qualifiedName(), callableSignature)
+ val symbol =
+ Symbol.createMethod(callable.containingClass().qualifiedName(), callableSignature)
output.add(Pair(symbol, flag))
}
}
@@ -468,8 +469,7 @@ internal fun findErrors(
val classFlagValue =
flaggedSymbolsInSource
.find { it.first.toPrettyString() == symbol.clazz }
- ?.let { flags.getValue(it.second) }
- ?: true
+ ?.let { flags.getValue(it.second) } ?: true
return classFlagValue
}
}