Annotation to disable JavaDocs

前端 未结 4 1987
北恋
北恋 2021-01-18 14:28

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:52

    /**
     *  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.

提交回复
热议问题