Skip to content

Commit

Permalink
Do not fail while parsing mapping file with R8 metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
nevack authored and JakeWharton committed Dec 17, 2021
1 parent 5272824 commit ef83fc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ApiMapping private constructor(private val typeMappings: Map<TypeDescripto
var fields: MutableMap<String, String>? = null
var methods: MutableMap<MethodSignature, String>? = null
toUtf8().split('\n').forEachIndexed { index, line ->
if (line.startsWith('#') || line.isBlank()) {
if (line.trimStart().startsWith('#') || line.isBlank()) {
return@forEachIndexed
}
if (line.startsWith(' ')) {
Expand Down

0 comments on commit ef83fc4

Please sign in to comment.