@Test public void testClassLoader() { assertEquals(ClassUtils.getDefaultClassLoader(), classLoader); }
public static ClassLoader getDefaultClassLoader() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } finally { if (cl == null) { cl = ClassUtils.class.getClassLoader(); } if (cl == null) { cl = ClassLoader.getSystemClassLoader(); } } return cl; }
ClassUtils { public static ClassLoader getDefaultClassLoader() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } finally { if (cl == null) { cl = ClassUtils.class.getClassLoader(); } if (cl == null) { cl = ClassLoader.getSystemClassLoader(); } } return cl; } }
ClassUtils { public static ClassLoader getDefaultClassLoader() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } finally { if (cl == null) { cl = ClassUtils.class.getClassLoader(); } if (cl == null) { cl = ClassLoader.getSystemClassLoader(); } } return cl; }  }
ClassUtils { public static ClassLoader getDefaultClassLoader() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } finally { if (cl == null) { cl = ClassUtils.class.getClassLoader(); } if (cl == null) { cl = ClassLoader.getSystemClassLoader(); } } return cl; }  static ClassLoader getDefaultClassLoader(); }
ClassUtils { public static ClassLoader getDefaultClassLoader() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } finally { if (cl == null) { cl = ClassUtils.class.getClassLoader(); } if (cl == null) { cl = ClassLoader.getSystemClassLoader(); } } return cl; }  static ClassLoader getDefaultClassLoader();  }