Fixing Jar close resource leak
This commit is contained in:
parent
bead95314a
commit
ecf30e41cb
|
@ -127,10 +127,8 @@ public class JarVersion
|
|||
|
||||
public static String getVersion(File file)
|
||||
{
|
||||
try
|
||||
try(JarFile jar = new JarFile(file))
|
||||
{
|
||||
JarFile jar = new JarFile(file);
|
||||
|
||||
String version = null;
|
||||
|
||||
Manifest manifest = jar.getManifest();
|
||||
|
|
Loading…
Reference in New Issue