• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comments of class doesnt show up in documentation generated with javadoc eclipse  RSS feed

 
Guntars Kautkads
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi good folks!

This is my very first topic on this awesome forum! I hope you wont be disturbed by bad english.
Im started learn Java with book Thinking in Java 4th ed. and hanged on creation of documentation with javadoc in eclipse.

This is how i do it: 4 screenshots on imgur. 1 preview of generated documentation.

Problem:Cant see anything in documentation about InsideMain class.

I dont know what im doing wrong.
Any help will be appreciated.





 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's because you're generating documentation to include public and protected visibility levels. The documentation of the code you're not seeing isn't either. It's package private, because it has no explicit modifier; remember that doesn't make it protected! Have a look at this page for a refresher on controlling visibility.

Edit: Oops I didn't notice you declared the class inside the main method. I don't think you can generate JavaDoc to include local classes, and I'm not sure what the use of that would be anyway.
 
Guntars Kautkads
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, i moved out InsideMain class from main method and now everything works fine!
Beginner mistakes...

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!