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