We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd87107 + 4316c9f commit 99f1fd3Copy full SHA for 99f1fd3
compiler/src/dotty/tools/dotc/interactive/InteractiveDriver.scala
@@ -132,10 +132,9 @@ class InteractiveDriver(val settings: List[String]) extends Driver {
132
133
try {
134
for {
135
- entry <- zipFile.stream.iterator().asScala
+ entry <- zipFile.stream.toArray((size: Int) => new Array[ZipEntry](size))
136
name = entry.getName
137
- tastySuffix <- tastySuffixes
138
- if name.endsWith(tastySuffix)
+ tastySuffix <- tastySuffixes.find(name.endsWith)
139
} yield name.replace("/", ".").stripSuffix(tastySuffix)
140
}
141
finally zipFile.close()
0 commit comments