What’s the correct way to include an email within Javadoc?

The {@link} is Javadoc-specific markup. Javadocs, though, are HTML – so you can simply use

/**
 * Embed HTML directly into the Javadoc.
 *
 * @author <a href="https://stackoverflow.com/questions/1509817/mailto:[email protected]">Benoit St-Pierre</a>
 */
public class Useless { }

Whether that’s a good idea or not is a different matter. 🙂

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)