Changes between Version 10 and Version 11 of standard
- Timestamp:
- 05/07/2012 06:09:54 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
standard
v10 v11 114 114 * 若你想给出有关类、接口、变量或方法的信息,而这些信息又不适合写在文档中,则可使用实现块注释或紧跟在声明后面的单行注释。例如,有关一个类实现的细节,应放入紧跟在类声明后面的实现块注释中,而不是放在文档注释中。 115 115 * 文档注释不能放在一个方法或构造器的定义块中,因为Java会将位于文档注释之后的第一个声明与其相关联。 116 * 原则上除了getter setter之外的所有公用方法都需要文档注释。 116 117 117 118 === 声明 === 118 119 ==== 每行声明变量的数量 ==== 119 推荐一行一个声明,因为这样以利于写注释。亦即,120 一行一个声明,因为这样以利于写注释。亦即, 120 121 {{{ 121 122 int level; // indentation level
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)