code: public static String canonicalClassName(Class<?> c, Class<?> parent) {
      return canonicalClassName(c, parent == null ? null : parent.getPackage());
    }
docs: Get the "simple" form of a class name.
  
  @param c Class name
  @param parent Parent/restriction class (to get package name to strip)
  @return Simplified class name.