How to @link to a Enum Value using Javadoc
I'm using Eclipse to check this, but
{@link Planet#EARTH}
style seems to work. However, I normally prefer
@see Planet#EARTH
anyway. Not sure what Eclipse uses to generate Javadoc, but I'm using JDK6. Still, maybe @see does the trick for you.
The #
style works for me:
{@link Planet#EARTH}
The key is that the Planet
package must be imported, or Planet
must be fully qualified - i.e.:
{@link com.yourpackage.Planet#EARTH}