code: private static String normalizeArrayNotation(String type) {
      int arrayDimensions = 0;
      while (type.endsWith("[]")) {
        type = type.substring(0, type.length() - 2);
        arrayDimensions++;
      }
  
      if (arrayDimensions == 0) {
        return type;
      } else {
        String arraySignature = Primitives.getArraySignature(type);
        if (arraySignature != null) {
          type = arraySignature;
        } else {
          type = "[L" + type + ";";
        }
        for (int i = 1; i < arrayDimensions; i++) {
          type = "[" + type;
        }
  
        return type;
      }
    }
docs: Normalizes a class name string to the appropriate java class name.  For example:
  <p/>
  java.lang.String -> java.lang.String
  java.lang.String[] -> [Ljava.lang.String;
  java.lang.String[][] -> [[Ljava.lang.String;
  
  @param type Name of type
  @return ormalizes a class name string to the appropriate java class name