Should Javadoc comments be added to the implementation?

前端 未结 7 610
醉酒成梦
醉酒成梦 2020-12-04 11:54

Is it correct practice to add Javadoc comments in the interface and add non-Javadoc comments in the implementation?

Most IDEs generate non-JavaDoc comments for imple

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 12:15

    For the sake of generated javadoc yes it does matter. If you declare references to a concrete implementation using only the interface then it doesn't since interface's methods will be retrieved by the IDE.

提交回复
热议问题