Yat*_*oel 24 java eclipse javadoc
我在我的Java项目中使用Eclipse IDE.
我有一个问题.我的项目中的方法有javadoc注释,如下所示:
/**
* Retruns the string representation of a input stream
* @param in
* @return
* @throws IOException
*/
public static String getStringFromInputStream (InputStream in) throws IOException {
StringBuffer out = new StringBuffer();
byte[] b = new byte[4096];
for (int n; (n = in.read(b)) != -1;) {
out.append(new String(b, 0, n));
}
return out.toString();
}
Run Code Online (Sandbox Code Playgroud)
现在我想知道,无论何时如果我在方法的签名中进行更改,这些更改都会自动反映在javadoc中.
Csa*_*a_H 11
Eclipse提供了相当不错的选项来确保javadoc的正确性,除了重命名的重构器JesperE提到:
/**
Enter您还可以设置编译器选项以检查Preferences/Java/Compiler/Javadoc上的javadoc缺失标记.在这种情况下,您会收到编译器关于缺失/额外标记的警告,并且您有quickfix(Ctrl+1)来修复它们.从长远来看,确保现有javadoc的正确性是一个很好的选择.
按下Atl+Shift+R
并更改
归档时间: |
|
查看次数: |
11685 次 |
最近记录: |