Hi,

I commented every method of my source code using javadoc tags. But I noticed the private methods/variables do not show up in the api documentation. If I change the access modifier to public then they show up. I was wondering how to make them visible (without declaring them as public) if I want to make all the contents visible to a developer (for his easy reading) who are going to develop on it later on.

Thanks.

It makes sense that private variables wouldn't show up in a javadoc because only the class itself has access to private variables. So it is just not necessary.

I believe it is possible to set a flag to generate javadoc for private/protected fields and methods. I think its -private or something like that. Google might be able to help you some more on that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.