logback-android/src/main/java/ch/qos/logback/core/util/Loader.java
public static Class<?> loadClass(String clazz) throws ClassNotFoundException {
    // Just call Class.forName(clazz) if we are running under JDK 1.1
    // or if we are instructed to ignore the TCL.
    if (ignoreTCL) {
      return Class.forName(clazz);
    } else {
      try {
        return getTCL().loadClass(clazz);
      } catch (Throwable e) {
        // we reached here because tcl was null or because of a
        // security exception, or because clazz could not be loaded...
        // In any case we now try one more time
        return Class.forName(clazz);
      }
    }
  }
public static Class<?> loadClass(String clazz) throws ClassNotFoundException {
    // Just call Class.forName(clazz) if we are running under JDK 1.1
    // or if we are instructed to ignore the TCL.
    if (ignoreTCL) {
      return Class.forName(clazz);
    } else {
      try {
        return getTCL().loadClass(clazz);
      } catch (Throwable e) {
        // we reached here because tcl was null or because of a
        // security exception, or because clazz could not be loaded...
        // In any case we now try one more time
        return Class.forName(clazz);
      }
    }
  }
public static Class < ? > loadClass ( String clazz ) throws ClassNotFoundException { // Just call Class.forName(clazz) if we are running under JDK 1.1 // or if we are instructed to ignore the TCL. if ( ignoreTCL ) { return Class . forName ( clazz ) ; } else { try { return getTCL ( ) . loadClass ( clazz ) ; } catch ( Throwable e ) { // we reached here because tcl was null or because of a // security exception, or because clazz could not be loaded... // In any case we now try one more time return Class . forName ( clazz ) ; } } }
If running under JDK 1.2 load the specified class using the
<code>Thread</code> <code>contextClassLoader</code> if that fails try
Class.forname. Under JDK 1.1 only Class.forName is used.

@param clazz the name of the class to find
@return the class
If running under JDK 1 . 2 load the specified class using the <code > Thread< / code > <code > contextClassLoader< / code > if that fails try Class . forname . Under JDK 1 . 1 only Class . forName is used .