Maven 检查样式错误:“<T>”的预期@param标记
2022-09-04 19:51:21
我有以下通用类型的方法,但是当我运行maven checkstyle(maven-checkstyle-plugin,2.121)时,它在maven构建期间会给我错误消息。我该如何克服这个问题?Expected @param tag for '<T>'
/**
* Read in specified type of object from request body.
* @param request The HttpServletRequest
* @param expected The expected type T
* @return <T> specified type of object
*/
public <T extends Object> T getExpectedValue(
final HttpServletRequest request, final Class<T> expected)
我用以下方式关闭了通用参数标签,但它不起作用,我上面也提到了java doc。
<module name="JavadocType">
<property name="allowMissingParamTags" value="true"/>
</module>