在Eclipse中更改方法签名时如何自动更新Javadoc? [英] How can I automatically update the Javadoc when changing the method signature in Eclipse?

查看:120
本文介绍了在Eclipse中更改方法签名时如何自动更新Javadoc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的Java项目使用Eclipse IDE。



我有一个问题。我有我的项目中的方法有javadoc评论如下:

  / ** 
*重新运行输入流的字符串表示
* @param在
* @return
* @throws IOException
* /
public static String getStringFromInputStream(InputStream in)throws IOException {
StringBuffer out = new StringBuffer();
byte [] b =新字节[4096];
for(int n;(n = in.read(b))!= -1;){
out.append(new String(b,0,n));
}
return out.toString();
}

现在我想知道有没有办法,只要我做

解决方案

Atl + Shift + R 并更改


I am using Eclipse IDE for my Java Project.

I have one problem. I have the methods in my project which have the javadoc comments like as follows:

/**
 * 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();
}

Now I want to know that Is there any way by which whenever if I make changes in my method's signature, those changes reflect in the javadoc automatically.

解决方案

Press Atl+Shift+R and change

这篇关于在Eclipse中更改方法签名时如何自动更新Javadoc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆