remove usages of .parallelStream

This commit is contained in:
moehreag 2024-05-28 15:15:15 +02:00
parent 67c253f2f0
commit 7dc23b1279

View file

@ -73,7 +73,7 @@ object AccessWidener {
private fun readAllAWs(project: Project): Stream<Entry> {
return Stream.concat(
findDependencyAWs(project).parallelStream().flatMap { i -> readTransitiveAW(i) },
findDependencyAWs(project).stream().flatMap { i -> readTransitiveAW(i) },
readAW(project)
)
.filter { it.isNotBlank() }
@ -141,7 +141,7 @@ object AccessWidener {
}
FileSystems.newFileSystem(input).use {
classNames.parallelStream().forEach { className ->
classNames.forEach { className ->
val file = it.getPath("/$className.class")
if (file.exists()) {
val reader = ClassReader(file.readBytes())