mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Explicitly close the file.
This commit is contained in:
1 parent
dc4dc55dcd
commit
3c08c104cc
1 file changed
+3
-1
@@ -446,7 +446,9 @@ public class CoreModManager {
|
||||
FMLRelaunchLog.log(Level.DEBUG, "Extracted ContainedDep %s from %s to %s", dep, jar.getName(), target.getCanonicalPath());
|
||||
try
|
||||
{
|
||||
ByteStreams.copy(jar.getInputStream(jarEntry), new FileOutputStream(target));
|
||||
FileOutputStream targ = new FileOutputStream(target);
|
||||
ByteStreams.copy(jar.getInputStream(jarEntry), targ);
|
||||
targ.close();
|
||||
} catch (IOException e)
|
||||
{
|
||||
FMLRelaunchLog.log(Level.ERROR, e, "An error occurred extracting dependency");
|
||||
|
||||
Reference in new issue
Block a user