fix aw parsing
All checks were successful
Publish to snapshot maven / build (push) Successful in 19s

This commit is contained in:
moehreag 2024-06-10 20:51:21 +02:00
parent 27d428d70a
commit 2d2dc33e00

View file

@ -62,7 +62,7 @@ object AccessWidener {
private fun readAW(project: Project): Stream<String> { private fun readAW(project: Project): Stream<String> {
val awFile = getAWFile(project) val awFile = getAWFile(project)
println("Found accesswidener in project: $awFile") 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-", "") } ?.map { it.replace("transitive-", "") }
?: Stream.empty() ?: Stream.empty()
} }