Skip to content

Commit

Permalink
♻️ Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Nov 18, 2024
1 parent ec3741e commit 5ef39a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/restheart/plugins/PluginsFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private <T extends Plugin> Set<PluginRecord<T>> createPlugins(List<PluginDescrip
var enabled = PluginRecord.isEnabled(enabledByDefault, pluginConf);

if (enabled) {
i = instantiatePlugin(clazz, type, name, conf);
i = instantiatePlugin(clazz, type, name);

var pr = new PluginRecord<>(name, description, secure, enabledByDefault, clazz.getName(), (T) i, pluginConf);

Expand Down Expand Up @@ -277,7 +277,7 @@ private Class<Plugin> loadPluginClass(PluginDescriptor plugin) throws ClassNotFo
return (Class<Plugin>) PluginsClassloader.getInstance().loadClass(plugin.clazz());
}

private Plugin instantiatePlugin(Class<Plugin> pc, String pluginType, String pluginName, Configuration conf) throws InstantiationException, IllegalAccessException, InvocationTargetException, IllegalArgumentException, SecurityException, ClassNotFoundException {
private Plugin instantiatePlugin(Class<Plugin> pc, String pluginType, String pluginName) throws InstantiationException, IllegalAccessException, InvocationTargetException, IllegalArgumentException, SecurityException, ClassNotFoundException {
try {
return pc.getDeclaredConstructor().newInstance();
} catch (NoSuchMethodException nme) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ef39a6

Please sign in to comment.