在Eclipse中更改方法签名时,如何自动更新Javadoc?

Yatendra Goel:

我在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();
}

现在,我想知道,是否有什么方法可以在我对方法签名进行更改时自动将这些更改反映在javadoc中。

Yatendra Goel:

按下Atl+Shift+R并更改

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章