java - Maven checkstyle error : Expected @param tag for '<T>' -
i have following method generic types, when run maven checkstyle(maven-checkstyle-plugin, 2.121) kept gives me expected @param tag '<t>'
error message during maven build. how on this?
/** * read in specified type of object request body. * @param request httpservletrequest * @param expected expected type t * @return <t> specified type of object */ public <t extends object> t getexpectedvalue( final httpservletrequest request, final class<t> expected)
i used following turn generic param tag off, didn't work , have above mentioned java doc well.
<module name="javadoctype"> <property name="allowmissingparamtags" value="true"/> </module>
it telling you did not write javadoc method type parameter:
/** * ... * @param <t> type parameter * @param .... */ public <t extends object> t getexpectedvalue( final httpservletrequest request, final class<t> expected)
the produced javadoc include section following in header:
type parameters: t - type parameter
Comments
Post a Comment