• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javadoc and nested classes?

 
Robert Konigsberg
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think is sun's policy on nested classes being documented? I have a JTable and within it I have an implementation of AbstractTableModel. I do not know how to run javadoc so nested classes are included, nor do I want to put the implementation of AbstractTableModel in its own class file. However the requirements say that all classes must be documented using javadoc.

Can someone who passed and had this problem tell me what they did?

Also, here's a question I hate to ask: do you think they're including anonymous classes in that requirement?
 
Robert Konigsberg
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the good news is I answered my own question about nested classes: make them public and javadoc will pick it up as public. OK.

PEOPLE WHO PASSED: You hadn't documented anonymous inner classes, had you?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11914
209
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Robert,

I did document everything, but I did not use javadoc for anonymous inner classes - I just used C or C++ comments depending on what sort of comment I wanted.

Regards, Andrew
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't have nested classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic