My question is as follows: Do I have to add a Javadoc comment for "public void windowClosing(WindowEvent we)" or is it legal to omit the Javadoc comment?
No. You don't need to javadoc anonymous inner classes. Matter of fact, I think you even can't. Anonymous inner classes are local to the methods, hence they are not available to anyone else, even to the methods in the same class. Think about it, what is the use of the documentaion if no one else can use it...!! [ August 25, 2004: Message edited by: Hanna Habashy ]
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Actually this question is better asked regardless of any annoymous factor.
If an inner class is not public or protected then the default javadoc visibilty argument will not show your inner class in the docs.
I have inner classes that implement interfaces, so there method signatures are public. The interface is documented, but I haven't even written a comment of any kind against the implementations, since they are self documenting. The inner class is private and only the interface type is made visible to clients via a factory method which is well documented.
SCJP 1.4, SCJD
posted 16 years ago
Thanks Ranchers, I felt so too (a little bit), but it's good to have other optinions to get the feeling I'm doing it right.