]> source.dussan.org Git - pf4j.git/commitdiff
Formatting
authorDecebal Suiu <decebal.suiu@gmail.com>
Tue, 23 Jan 2018 19:42:30 +0000 (21:42 +0200)
committerDecebal Suiu <decebal.suiu@gmail.com>
Tue, 23 Jan 2018 19:42:30 +0000 (21:42 +0200)
pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java

index 47f4d72d90a6e6ca3303c9d7b607382f9f17b7c8..e2f26c90735fbc1cb68223da8d759fb98d9f4c17 100644 (file)
@@ -51,7 +51,7 @@ public class ManifestPluginDescriptorFinder implements PluginDescriptorFinder {
 
     protected Manifest readManifest(Path pluginPath) throws PluginException {
         if (FileUtils.isJarFile(pluginPath)) {
-            try(JarFile jar = new JarFile(pluginPath.toFile())) {
+            try (JarFile jar = new JarFile(pluginPath.toFile())) {
                 Manifest manifest = jar.getManifest();
                 if (manifest != null) {
                     return manifest;