@@ -85,7 +85,7 @@ abstract class ZipArchive(override val jpath: JPath) extends AbstractFile with E
8585 }
8686 }
8787
88- private def ensureDir (dirs : mutable.Map [String , DirEntry ], path : String , zipEntry : ZipEntry ): DirEntry =
88+ private def ensureDir (dirs : mutable.Map [String , DirEntry ], path : String ): DirEntry =
8989 // OPT inlined from getOrElseUpdate; saves ~50K closures on test run.
9090 // was:
9191 // dirs.getOrElseUpdate(path, {
@@ -97,16 +97,16 @@ abstract class ZipArchive(override val jpath: JPath) extends AbstractFile with E
9797 dirs get path match {
9898 case Some (v) => v
9999 case None =>
100- val parent = ensureDir(dirs, dirName(path), null )
100+ val parent = ensureDir(dirs, dirName(path))
101101 val dir = new DirEntry (path, parent)
102102 parent.entries(baseName(path)) = dir
103103 dirs(path) = dir
104104 dir
105105 }
106106
107107 protected def getDir (dirs : mutable.Map [String , DirEntry ], entry : ZipEntry ): DirEntry = {
108- if (entry.isDirectory) ensureDir(dirs, entry.getName, entry )
109- else ensureDir(dirs, dirName(entry.getName), null )
108+ if (entry.isDirectory) ensureDir(dirs, entry.getName)
109+ else ensureDir(dirs, dirName(entry.getName))
110110 }
111111}
112112/** ''Note: This library is considered experimental and should not be used unless you know what you are doing.'' */
0 commit comments