如何摆脱 Checkstyle 错误 "unused @throws tag.."

How to get rid of Checkstyle error "unused @throws tag.."

在我的 java class 中记录一个方法时,我在 @throws 标记中提到了一个异常,但我实际上并没有抛出它,但知道我正在调用的 Web 服务可能丢它。但是 checkstyle 说 "Unused @throws tag for 'IllegalInputException'"

我有 suppressions.xml 文件,其中列出了几个抑制,但我无法找到如何摆脱上面提到的那个。

...

糟糕,我的方法签名中缺少它。我在整个网络上搜索检查样式标签,但这是签名的问题