Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude deprecated public methods from Javadoc?

I would like to generate javadoc for my classes. The 'generate Javadoc' command gives me an option to create Javadoc for members with visibility Private/Package/Protected/Public. But there are some public methods I don't want to be included in the Javadoc. How can I specify for this Javadoc generator exactly which members/methods to include and which ones to not include?

(I use eclipse 3.4.2)

Edit: Some of you asked what is the reason I want to do this. The reason is that I have some methods which I don't want to exist but I still need them to work for backward compatibility. I marked them as @deprecated so that people who try to use them will recieve a warning. But I don't want them to appear at all in the Javadoc. Is there a way to exclude them from the javadoc given they're marked @deprecated?

like image 357
snakile Avatar asked Oct 18 '25 10:10

snakile


1 Answers

So, why does javadoc -nodeprecated not do the trick?

like image 62
atk Avatar answered Oct 20 '25 01:10

atk