diff --git a/core/src/main/java/org/restheart/plugins/PluginsFactory.java b/core/src/main/java/org/restheart/plugins/PluginsFactory.java index e0a04d1db..d5ef31106 100644 --- a/core/src/main/java/org/restheart/plugins/PluginsFactory.java +++ b/core/src/main/java/org/restheart/plugins/PluginsFactory.java @@ -240,7 +240,7 @@ private Set> createPlugins(List(name, description, secure, enabledByDefault, clazz.getName(), (T) i, pluginConf); @@ -277,7 +277,7 @@ private Class loadPluginClass(PluginDescriptor plugin) throws ClassNotFo return (Class) PluginsClassloader.getInstance().loadClass(plugin.clazz()); } - private Plugin instantiatePlugin(Class pc, String pluginType, String pluginName, Configuration conf) throws InstantiationException, IllegalAccessException, InvocationTargetException, IllegalArgumentException, SecurityException, ClassNotFoundException { + private Plugin instantiatePlugin(Class pc, String pluginType, String pluginName) throws InstantiationException, IllegalAccessException, InvocationTargetException, IllegalArgumentException, SecurityException, ClassNotFoundException { try { return pc.getDeclaredConstructor().newInstance(); } catch (NoSuchMethodException nme) { diff --git a/polyglot/src/main/java/org/restheart/polyglot/PolyglotDeployer.java b/polyglot/src/main/java/org/restheart/polyglot/PolyglotDeployer.java index 5324e2b13..161d3a3be 100644 --- a/polyglot/src/main/java/org/restheart/polyglot/PolyglotDeployer.java +++ b/polyglot/src/main/java/org/restheart/polyglot/PolyglotDeployer.java @@ -20,16 +20,13 @@ */ package org.restheart.polyglot; -import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import java.nio.file.DirectoryStream; -import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; -import java.nio.file.Paths; import java.util.ArrayList; import java.util.HashMap; import java.util.List;