Skip to content

Commit

Permalink
Merge pull request #5346 from rsvoboda/ZipResourceLoader.java13.fix
Browse files Browse the repository at this point in the history
ZipResourceLoader fix to compile with Java 13
  • Loading branch information
geoand authored Nov 9, 2019
2 parents 60be0d9 + fec62d0 commit c93ba5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public ZipResourceLoader(Path zip) {

@Override
public <T> T loadResource(String name, ResourceInputStreamConsumer<T> consumer) throws IOException {
try(FileSystem fs = FileSystems.newFileSystem(zip, null)) {
try(FileSystem fs = FileSystems.newFileSystem(zip, (ClassLoader) null)) {
final Path p = fs.getPath("/", name);
if(!Files.exists(p)) {
throw new IOException("Failed to locate " + name + " in " + zip);
Expand Down

0 comments on commit c93ba5a

Please sign in to comment.