logback-android/src/main/java/ch/qos/logback/core/util/Loader.java
public static ClassLoader getClassLoaderOfObject(Object o) {
    if (o == null) {
      throw new NullPointerException("Argument cannot be null");
    }
    return getClassLoaderOfClass(o.getClass());
  }
public static ClassLoader getClassLoaderOfObject(Object o) {
    if (o == null) {
      throw new NullPointerException("Argument cannot be null");
    }
    return getClassLoaderOfClass(o.getClass());
  }
public static ClassLoader getClassLoaderOfObject ( Object o ) { if ( o == null ) { throw new NullPointerException ( "Argument cannot be null" ) ; } return getClassLoaderOfClass ( o . getClass ( ) ) ; }
Get the class loader of the object passed as argument. Return the system
class loader if appropriate.

@param o object to evaluate
@return the classloader of the object
Get the class loader of the object passed as argument . Return the system class loader if appropriate .