Skip to content

Commit

Permalink
Kill reference to com.sun's ZipFileSystem.
Browse files Browse the repository at this point in the history
  • Loading branch information
xian committed Dec 6, 2018
1 parent 1c76a81 commit f13d78a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions resources/src/main/java/org/robolectric/res/Fs.java
@@ -1,6 +1,5 @@
package org.robolectric.res;

import com.sun.nio.zipfs.ZipFileSystem;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -99,10 +98,10 @@ public static Path join(Path path, String... pathParts) {
}

public static String externalize(Path path) {
if (path.getFileSystem() instanceof ZipFileSystem) {
return path.toUri().toString();
} else {
if (path.getFileSystem().provider().getScheme().equals("file")) {
return path.toString();
} else {
return path.toUri().toString();
}
}
}

0 comments on commit f13d78a

Please sign in to comment.