Browse Source

Minor code improvement

pull/94/merge
Decebal Suiu 9 years ago
parent
commit
1b623fcf25
  1. 4
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java

4
pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java

@ -60,8 +60,8 @@ public class DefaultPluginFactory implements PluginFactory {
// create the plugin instance // create the plugin instance
try { try {
Constructor<?> constructor = pluginClass.getConstructor(new Class[] { PluginWrapper.class }); Constructor<?> constructor = pluginClass.getConstructor(PluginWrapper.class);
return (Plugin) constructor.newInstance(new Object[] { pluginWrapper }); return (Plugin) constructor.newInstance(pluginWrapper);
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
} }

Loading…
Cancel
Save