/** * Build the emittable type name. The type may be an array and/or a generic type. * * @param type A Type object * @return The emittable type name */ private String buildEmittableTypeString(com.sun.javadoc.Type type) { if (type == null) { return null; } // type.toString() returns the fully qualified name of the type // including the dimension and the parameters we just need to // escape the generic parameters brackets so that the XML // generated is correct String name = type.toString().replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">"); if (name.startsWith("<<ambiguous>>")) { name = name.substring(13); } return name; }