【发布时间】:2012-10-25 17:14:06
【问题描述】:
当你在Eclipse中的一个方法上面输入/**并回车,它会生成Javadoc,例如:
/**
* Finds a World using a String, greets the World,
* and then returns a reference to the World.
*
* @param world - the World to find and greet.
* @return the reference to the World.
* @throws ApocalypseException - if the World is not found.
*/
public World helloWorld(String world) throws ApocalypseException {
...
}
但是,有时当我在方法中添加 Javadoc 时,它会随机停止生成:
/**
*
*/
public Universe helloUniverse(String universe) throws BigBangException {
...
}
这不是特定于某个类的。我将在一个类中生成 5 个左右的方法,然后它就停止生成。我认为 Workspace 无法读取我的类文件,所以我删除了它们并重新编译,但这并没有解决问题。我也试过重启 Eclipse,但也没有用。
【问题讨论】:
标签: java eclipse autocomplete javadoc workspace