From 5ef39a6f61e81b130279e1906e8e1d2af8b3db67 Mon Sep 17 00:00:00 2001 From: Andrea Di Cesare Date: Mon, 18 Nov 2024 10:34:33 +0100 Subject: [PATCH] :recycle: Remove unused imports --- core/src/main/java/org/restheart/plugins/PluginsFactory.java | 4 ++-- .../main/java/org/restheart/polyglot/PolyglotDeployer.java | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) 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;