Skip to content

Commit 19e6f77

Browse files
committed
Code refactor
1 parent cef16f1 commit 19e6f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/src/dotty/tools/io/ZipArchive.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ final class FileZipArchive(jpath: JPath) extends ZipArchive(jpath) {
199199
final class ManifestResources(val url: URL) extends ZipArchive(null) {
200200
def iterator(): Iterator[AbstractFile] = {
201201
val root = new DirEntry("/", null)
202-
val dirs = new mutable.HashMap[String, DirEntry]; dirs.put("/", root)
202+
val dirs = mutable.HashMap[String, DirEntry]("/" -> root)
203203
val manifest = new Manifest(input)
204204
val iter = manifest.getEntries().keySet().iterator().asScala.filter(_.endsWith(".class")).map(new ZipEntry(_))
205205

0 commit comments

Comments
 (0)