code: private static String toCanonicalName(String className) {
          className = StringUtils.deleteWhitespace(className);
          Validate.notNull(className, "className must not be null.");
          if (className.endsWith("[]")) {
              final StringBuilder classNameBuffer = new StringBuilder();
              while (className.endsWith("[]")) {
                  className = className.substring(0, className.length() - 2);
                  classNameBuffer.append("[");
              }
              final String abbreviation = abbreviationMap.get(className);
              if (abbreviation != null) {
                  classNameBuffer.append(abbreviation);
              } else {
                  classNameBuffer.append("L").append(className).append(";");
              }
              className = classNameBuffer.toString();
          }
          return className;
      }
docs: Converts a class name to a JLS style class name.
  
  @param className  the class name
  @return the converted name