We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cef16f1 commit 19e6f77Copy full SHA for 19e6f77
compiler/src/dotty/tools/io/ZipArchive.scala
@@ -199,7 +199,7 @@ final class FileZipArchive(jpath: JPath) extends ZipArchive(jpath) {
199
final class ManifestResources(val url: URL) extends ZipArchive(null) {
200
def iterator(): Iterator[AbstractFile] = {
201
val root = new DirEntry("/", null)
202
- val dirs = new mutable.HashMap[String, DirEntry]; dirs.put("/", root)
+ val dirs = mutable.HashMap[String, DirEntry]("/" -> root)
203
val manifest = new Manifest(input)
204
val iter = manifest.getEntries().keySet().iterator().asScala.filter(_.endsWith(".class")).map(new ZipEntry(_))
205
0 commit comments