Fixing Jar close resource leak

This commit is contained in:
Joakim Erdfelt 2013-08-17 11:59:16 -07:00 committed by Greg Wilkins
parent bead95314a
commit ecf30e41cb
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();