Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isAncestor (0.1 sec)

  1. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

            assertThat(ClassLoaderUtil.isAncestor(cl3, cl2), is(true));
            assertThat(ClassLoaderUtil.isAncestor(cl3, cl1), is(true));
            assertThat(ClassLoaderUtil.isAncestor(cl2, cl1), is(true));
    
            assertThat(ClassLoaderUtil.isAncestor(cl1, cl2), is(not(true)));
            assertThat(ClassLoaderUtil.isAncestor(cl1, cl3), is(not(true)));
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

            final ClassLoader thisClassLoader = ClassLoaderUtil.class.getClassLoader();
            if (targetClassLoader != null && thisClassLoader != null) {
                if (isAncestor(thisClassLoader, targetClassLoader)) {
                    return thisClassLoader;
                }
                return targetClassLoader;
            }
            if (targetClassLoader != null) {
                return targetClassLoader;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top