Friday, September 29, 2006

What to javadoc: the setter, the getter, or the private var?

Solution: the private var. Then to the setter and getter empty javadocs, add @see for the private var.

Now, if you Ctrl-Q the getter or setter, you can click the link under "See also", and the private var's javadoc appears.