Simple Getter/Setter comments

前端 未结 14 1046
悲&欢浪女
悲&欢浪女 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:39

    Generally nothing, if I can help it. Getters and setters ought to be self-explanatory.

    I know that sounds like a non-answer, but I try to use my time for commenting things that need explanation.

提交回复
热议问题