Checkstyle 一直给我这个错误:
Expected @throws tag for RemoteException
这是我的 javadoc 注释和方法的第一行:
/**
* Inits the filter
*
* @throws RemoteException if there is an issue
*/
public void init() throws RemoteException {
最佳答案
真的希望这对某人有帮助:
/*
* @throws SomeExceptionPresentOnImports some text
* @throws com.myorg.SomeExceptionPresentOnImports1 some text
*/
两者都报错
但如果您删除完全限定名称,它不会提示。
/*
* @throws SomeExceptionPresentOnImports some text
* @throws SomeExceptionPresentOnImports1 some text
*/
关于java - Checkstyle 未检测到 @throws 标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29452451/