Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[URLyBird] Javadoc comments

 
Leszek Zajac
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

My specification says:
"... javadoc style comments must be used for each element of the public interface of each class."

So I should have javadoc comments for public methods (and variables if any).
But should I write javadocs for protected methods and variables?

Best regards
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I provide Javadoc comments for everything except some datamembers (mostly private ones).
The generated Javadoc I limit to public only to save a bit of space.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic