Annotation to disable JavaDocs

前端 未结 4 1294
北恋
北恋 2021-01-18 14:32

Is there an annotation to declare that a certain method will not be included in the JavaDocs even though it is public?

Something like:

@nojavadocs
p         


        
4条回答
  •  渐次进展
    2021-01-18 14:50

    /**
     *  Don't use this method 
    * or all your data will be lost. */ public void foo(){ //... }

    well, use a better explanation why the user should not use this method...
    Remember that it's not hard to find any (public) method using a decompiler or Reflection.

提交回复
热议问题