Reputation: 8717
I have made a program that consist of a few classes a class that extends however one class doesn't produce any JavaDoc or appear in the program tree. It is declared like this:
class myClass extends anotherClassOfMine {
}
Is there something special I need to add to anotherClassOfMine
to ensure that the JavaDoc is created for myClass
?
TIA
Upvotes: 3
Views: 3959
Reputation: 74750
As mentiones in the comments, by default Javadoc only includes public and protected elements. Your class not being public, Javadoc thinks it is not intended to be documented.
You can either make your class public (adding public
), or change Javadoc's behaviour by adding one of the access options -package
or -private
. Other values are -public
or -protected
(the default).
(Of course, you should also add some actual documentation, but one of the changes above should be enough so your class will show up.)
Upvotes: 7