From: Decebal Suiu Date: Thu, 18 Jan 2018 18:12:35 +0000 (+0200) Subject: Formatting X-Git-Tag: release-2.2.0~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a78fe6d7e6d9b11c2f2d8360ddf2d9cc13be7e8b;p=pf4j.git Formatting --- diff --git a/demo/plugins/plugin1/pom.xml b/demo/plugins/plugin1/pom.xml index 8c2f826..9fa107c 100644 --- a/demo/plugins/plugin1/pom.xml +++ b/demo/plugins/plugin1/pom.xml @@ -18,7 +18,7 @@ org.pf4j.demo.welcome.WelcomePlugin 0.0.1 Decebal Suiu - + diff --git a/demo/plugins/plugin2/pom.xml b/demo/plugins/plugin2/pom.xml index fb2d223..653f937 100644 --- a/demo/plugins/plugin2/pom.xml +++ b/demo/plugins/plugin2/pom.xml @@ -18,7 +18,7 @@ org.pf4j.demo.hello.HelloPlugin 0.0.1 Decebal Suiu - + diff --git a/demo/plugins/pom.xml b/demo/plugins/pom.xml index 682ccfd..98162d7 100644 --- a/demo/plugins/pom.xml +++ b/demo/plugins/pom.xml @@ -17,11 +17,13 @@ UTF-8 UTF-8 1.7 - - - - - + + + + + + + diff --git a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java index 711d764..9f3471e 100644 --- a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java @@ -525,27 +525,29 @@ public abstract class AbstractPluginManager implements PluginManager { return pluginClassLoaders.get(pluginId); } + @SuppressWarnings("unchecked") @Override public List> getExtensionClasses(Class type) { List> extensionsWrapper = extensionFinder.find(type); List> extensionClasses = new ArrayList<>(extensionsWrapper.size()); for (ExtensionWrapper extensionWrapper : extensionsWrapper) { - @SuppressWarnings("unchecked") - Class c = (Class)extensionWrapper.getDescriptor().extensionClass; + Class c = (Class) extensionWrapper.getDescriptor().extensionClass; extensionClasses.add(c); } + return extensionClasses; } + @SuppressWarnings("unchecked") @Override public List> getExtensionClasses(Class type, String pluginId) { List> extensionsWrapper = extensionFinder.find(type, pluginId); List> extensionClasses = new ArrayList<>(extensionsWrapper.size()); for (ExtensionWrapper extensionWrapper : extensionsWrapper) { - @SuppressWarnings("unchecked") - Class c = (Class)extensionWrapper.getDescriptor().extensionClass; + Class c = (Class) extensionWrapper.getDescriptor().extensionClass; extensionClasses.add(c); } + return extensionClasses; }