File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ trait SourceFileEntry extends ClassRepresentation {
24
24
25
25
case class PackageName (dottedString : String ) {
26
26
def isRoot : Boolean = dottedString.isEmpty
27
- val dirPathTrailingSlash : String = FileUtils .dirPath(dottedString) + " / "
27
+ val dirPathTrailingSlash : String = FileUtils .dirPath(dottedString) + java.io. File .separator
28
28
29
29
def entryName (entry : String ): String = {
30
30
if (isRoot) entry else {
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ final class FileZipArchive(jpath: JPath) extends ZipArchive(jpath) {
199
199
final class ManifestResources (val url : URL ) extends ZipArchive (null ) {
200
200
def iterator (): Iterator [AbstractFile ] = {
201
201
val root = new DirEntry (" /" , null )
202
- val dirs = new mutable.HashMap [String , DirEntry ]; dirs.put (" /" , root)
202
+ val dirs = mutable.HashMap [String , DirEntry ](" /" -> root)
203
203
val manifest = new Manifest (input)
204
204
val iter = manifest.getEntries().keySet().iterator().asScala.filter(_.endsWith(" .class" )).map(new ZipEntry (_))
205
205
You can’t perform that action at this time.
0 commit comments