Search code examples
javaurljavadochyperlink

Linking to an external URL in Javadoc?


Something like:

/**
 * See {@linktourl http://google.com}
 */

Solution

  • This creates a "See Also" heading containing the link, i.e.:

    /**
     * @see <a href="http://google.com">http://google.com</a>
     */
    

    will render as:

    See Also:
               http://google.com

    whereas this:

    /**
     * See <a href="http://google.com">http://google.com</a>
     */
    

    will create an in-line link:

    See http://google.com