code: public static String getDescriptor(final Class<?> clazz) {
      StringBuilder stringBuilder = new StringBuilder();
      appendDescriptor(stringBuilder, clazz);
      return stringBuilder.toString();
    }
docs: Returns the descriptor corresponding to the given class.
  
  @param clazz an object class, a primitive class or an array class.
  @return the descriptor corresponding to the given class.