my dog learned polymorphism
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Javadoc - only public members? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Javadoc - only public members?" Watch "Javadoc - only public members?" New topic
Author

Javadoc - only public members?

Michael Gonzalez
Greenhorn

Joined: Apr 14, 2010
Posts: 2
hi guys,

The instructions say that "and javadoc style comments must be used for each element of the public interface of each class."

Does it mean we can/should leave the not public methods/variables of the classes undocumented?

What did you do?


Thanks!
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2212

Greetings, champion. Welcome to our JavaRanch!

Well, the instructions say that at least the public elements of your API should have JavaDocs. I myself included JavaDocs for all elements, including private ones.

Also, please take a look at your private messages, regarding an important administrative information.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4347

I created javadoc comments for public, protected, default and private classes and members. I haved generated javadoc documentation for all but private classes and members.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Michael Gonzalez
Greenhorn

Joined: Apr 14, 2010
Posts: 2
Roel De Nijs wrote:I created javadoc comments for public, protected, default and private classes and members. I haved generated javadoc documentation for all but private classes and members.


thanks Roel. I asked because at the beginning i wanted to just generate it for everything to be safe but i quickly realized that doing it for every little private variable in the class is way too tedious and repetitive. I will do the same as you did.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Javadoc - only public members?
 
Similar Threads
[URLyBird] Javadoc comments
JavaDoc for constructors?
B&S: What types do you comment with javadoc?
Javadoc Query
How does servlet decide which init method to call