Simple Getter/Setter comments

前端 未结 14 1026
悲&欢浪女
悲&欢浪女 2020-12-04 07:16

What convention do you use to comment getters and setters? This is something I\'ve wondered for quite some time, for instance:

/**
 * (1a) what do you put h         


        
14条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 07:40

    it is ok to fill in the (b) part, especially if you put a comment at the field declaration indicating what the field is all about.

提交回复
热议问题