Clean up usages of ClassLoaderReflectionToolkit (#5895)

This commit is contained in:
Basil Crow authored and GitHub committed 2021-11-12 08:01:28 +00:00
1 parent 63c183d05e
commit 1290af7ce1
3 files changed
+46 -12

No files matched your search

@@ -641,9 +641,7 @@ public class ClassicPluginStrategy implements PluginStrategy {
if (PluginManager.FAST_LOOKUP) {
for (PluginWrapper pw : getTransitiveDependencies()) {
try {
Class<?> c = ClassLoaderReflectionToolkit._findLoadedClass(pw.classLoader, name);
if (c!=null) return c;
return ClassLoaderReflectionToolkit._findClass(pw.classLoader, name);
return ClassLoaderReflectionToolkit.loadClass(pw.classLoader, name);
} catch (ClassNotFoundException ignored) {
//not found. try next
}