• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javadoc and nested classes?

 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I didn't have nested classes.
 
reply
    Bookmark Topic Watch Topic
  • New Topic