diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2016-03-19 17:49:01 +0200 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2016-03-19 17:49:01 +0200 |
commit | 1b623fcf25f791a455948eac425fc0e403f66d36 (patch) | |
tree | b77cd32d3ea2c2abf9801f7b7418f7d8b7767bf8 /pf4j | |
parent | 0295f2caa30964624fec192452b0fe1fb8d10b9a (diff) | |
download | pf4j-1b623fcf25f791a455948eac425fc0e403f66d36.tar.gz pf4j-1b623fcf25f791a455948eac425fc0e403f66d36.zip |
Minor code improvement
Diffstat (limited to 'pf4j')
-rw-r--r-- | pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java | 4 |
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); } |