How to stop Javadoc from using fully qualified name?

I'm using the Javadoc tool to document some code, and the results uses fully qualified names for system classes, such as java.lang.String. Is there a way to stop that specifically for classes in the java.* and javax.* heirarchy?

For example, a method definition like this:

    * @param field String to write.
    * @throws IOException If the underlying stream throws an exception.
    */
   public void writeField( String field ) throws IOException {
      // etc.

Produces Javadoc output like this:

writeField

public void writeField​(java.lang.String field) throws java.io.IOException

...etc.

Parameters:
field - String to write.
Throws:
java.io.IOException - If the underlying stream throws an exception.

I’d like the reference to java.lang.String to be just String, and the reference to java.io.IOException likewise to be just IOException.

Any ideas?

#java

4 Likes2.15 GEEK