Skip to content

Commit

Permalink
Fixed openStream()
Browse files Browse the repository at this point in the history
  • Loading branch information
immortius authored and asiekierka committed Jul 6, 2018
1 parent 834b98b commit 04e3367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public BufferedInputStream openStream() throws IOException {
try {
return AccessController.doPrivileged((PrivilegedExceptionAction<BufferedInputStream>) () -> {
Preconditions.checkState(Files.isRegularFile(path));
new BufferedInputStream(Files.newInputStream(path))
return new BufferedInputStream(Files.newInputStream(path));
});
} catch (PrivilegedActionException e) {
throw new IOException("Failed to open stream for '" + path + "'", e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public ModuleAwareAssetTypeManager(ClassFactory classFactory) {
}

@Override
public synchronized void close() {
public synchronized void close() throws IOException {
for (AssetType assetType : assetTypes.values()) {
assetType.close();
}
Expand Down

0 comments on commit 04e3367

Please sign in to comment.