mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-07 09:06:03 +00:00
Merge pull request #3640 from oleg-nenashev/build/jdk11-underscore-vars
JDK-11 support: refactor code to avoid underscore variable names
This commit is contained in:
21 files changed
+47
-46
No files matched your search
@@ -779,19 +779,20 @@ public class ClassicPluginStrategy implements PluginStrategy {
|
||||
Class<?> c = ClassLoaderReflectionToolkit._findLoadedClass(pw.classLoader, name);
|
||||
if (c!=null) return c;
|
||||
return ClassLoaderReflectionToolkit._findClass(pw.classLoader, name);
|
||||
} catch (ClassNotFoundException e) {
|
||||
} catch (ClassNotFoundException ignored) {
|
||||
//not found. try next
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (Dependency dep : dependencies) {
|
||||
PluginWrapper p = pluginManager.getPlugin(dep.shortName);
|
||||
if(p!=null)
|
||||
if(p!=null) {
|
||||
try {
|
||||
return p.classLoader.loadClass(name);
|
||||
} catch (ClassNotFoundException _) {
|
||||
// try next
|
||||
} catch (ClassNotFoundException ignored) {
|
||||
// OK, try next
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user