summaryrefslogtreecommitdiffstats
path: root/pf4j/src
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2018-01-23 21:42:30 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2018-01-23 21:42:30 +0200
commitc0390bb19a6fa63146bac284b41ff65c861b0763 (patch)
tree9a1153c2659cd74f0e9e4410f8fa23313dd8be19 /pf4j/src
parente80aae6c1f613c8248e7161c7d83c66109f2a7d5 (diff)
downloadpf4j-c0390bb19a6fa63146bac284b41ff65c861b0763.tar.gz
pf4j-c0390bb19a6fa63146bac284b41ff65c861b0763.zip
Formatting
Diffstat (limited to 'pf4j/src')
-rw-r--r--pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java b/pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java
index 47f4d72..e2f26c9 100644
--- a/pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java
+++ b/pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java
@@ -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;