aboutsummaryrefslogtreecommitdiffstats
path: root/pf4j
diff options
context:
space:
mode:
Diffstat (limited to 'pf4j')
-rw-r--r--pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java
index 0ef0e3b..76c2760 100644
--- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java
+++ b/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java
@@ -60,8 +60,8 @@ public class DefaultPluginFactory implements PluginFactory {
// create the plugin instance
try {
- Constructor<?> constructor = pluginClass.getConstructor(new Class[] { PluginWrapper.class });
- return (Plugin) constructor.newInstance(new Object[] { pluginWrapper });
+ Constructor<?> constructor = pluginClass.getConstructor(PluginWrapper.class);
+ return (Plugin) constructor.newInstance(pluginWrapper);
} catch (Exception e) {
log.error(e.getMessage(), e);
}