Fixing Jar close resource leak

This commit is contained in:
Joakim Erdfelt 2013-08-17 11:59:16 -07:00
parent 3c28bf8c60
commit 053b9fe34b
1 changed files with 1 additions and 3 deletions

View File

@ -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();