MINOR: Remove the unused field in DelegatingClassLoader
After [3173](https://github.com/apache/kafka/commit/e0150a25e8), the field "activePaths" is not used anymore.
Author: Chia-Ping Tsai
Reviewers: Ewen Cheslack-Postava
Closes from chia7712/remove_unused_field_from_DelegatingClassLoader
@@ -72,7 +72,6 @@ public class DelegatingClassLoader extends URLClassLoader {
private final SortedSet<PluginDesc<ConfigProvider>> configProviders;
private final SortedSet<PluginDesc<ConnectRestExtension>> restExtensions;
private final List<String> pluginPaths;
- private final Map<Path, PluginClassLoader> activePaths;
private static final String MANIFEST_PREFIX = "META-INF/services/";
private static final Class[] SERVICE_LOADER_PLUGINS = new Class[] {ConnectRestExtension.class, ConfigProvider.class};
@@ -85,7 +84,6 @@ public class DelegatingClassLoader extends URLClassLoader {
this.pluginPaths = pluginPaths;
this.pluginLoaders = new HashMap<>();
this.aliases = new HashMap<>();
- this.activePaths = new HashMap<>();
this.connectors = new TreeSet<>();
this.converters = new TreeSet<>();
this.headerConverters = new TreeSet<>();
@@ -239,10 +237,6 @@ public class DelegatingClassLoader extends URLClassLoader {
PluginScanResult plugins = scanPluginPath(loader, urls);
log.info("Registered loader: {}", loader);
if (!plugins.isEmpty()) {
- if (loader instanceof PluginClassLoader) {
- activePaths.put(pluginLocation, (PluginClassLoader) loader);
- }
-
addPlugins(plugins.connectors(), loader);
connectors.addAll(plugins.connectors());
addPlugins(plugins.converters(), loader);
