Skip to content

Commit 5986a69

Browse files
committed
Clean up DelegatingClassLoader
1 parent 6363fbf commit 5986a69

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

core/src/main/java/hudson/util/DelegatingClassLoader.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,10 @@ public DelegatingClassLoader(ClassLoader parent) {
3939
* If the class could not be found
4040
*/
4141
@Override
42-
protected Class<?> loadClass(String name, boolean resolve)
43-
throws ClassNotFoundException
44-
{
42+
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
4543
Class<?> c = null;
4644
try {
47-
if (getParent() != null) {
48-
c = getParent().loadClass(name);
49-
}
45+
c = getParent().loadClass(name);
5046
} catch (ClassNotFoundException e) {
5147
// ClassNotFoundException thrown if class not found
5248
// from the non-null parent class loader

0 commit comments

Comments
 (0)