fix aw parsing
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s
This commit is contained in:
parent
27d428d70a
commit
2d2dc33e00
|
@ -62,7 +62,7 @@ object AccessWidener {
|
|||
private fun readAW(project: Project): Stream<String> {
|
||||
val awFile = getAWFile(project)
|
||||
println("Found accesswidener in project: $awFile")
|
||||
return awFile?.bufferedReader(StandardCharsets.UTF_8).takeIf { HEADER.test(readlnOrNull()) }?.lines()
|
||||
return awFile?.bufferedReader(StandardCharsets.UTF_8).takeIf { HEADER.test(readlnOrNull()?: "") }?.lines()
|
||||
?.map { it.replace("transitive-", "") }
|
||||
?: Stream.empty()
|
||||
}
|
||||
|
@ -293,4 +293,4 @@ class AWClassVisitor(
|
|||
}
|
||||
return super.visitMethod(access, name, descriptor, signature, exceptions)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue