Javadoc:从嵌套方法调用中添加@throws

时间:2019-01-24 11:43:56

标签: java javadoc

猜这种方法:

/**
* Description
* @throws EspaiDocFault
*/
public void doSomething() {
   throw new EspaiDocFault();
}

/**
* Description
*/
public void doAnotherThing() {
    this.doSomething();
}

其中EspaiDocFault是:

public class EspaiDocFault extends RuntimeException {}

我应该在@throws EspaiDocFault java-doc中添加doAnotherThing吗?

0 个答案:

没有答案