[ https://issues.apache.org/jira/browse/XALANJ-2555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250363#comment-13250363 ]
SHIN HWEI TAN commented on XALANJ-2555: --------------------------------------- Yes, the Javadoc comments reported above are referring to the @param v A non-null ElemParam reference tag in the templates/Stylesheet.java file > Inconsistent Javadoc comment and code for setParam(ElemParam) in > org.apache.xalan.templates.Stylesheet > ------------------------------------------------------------------------------------------------------ > > Key: XALANJ-2555 > URL: https://issues.apache.org/jira/browse/XALANJ-2555 > Project: XalanJ2 > Issue Type: Bug > Security Level: No security risk; visible to anyone(Ordinary problems in > Xalan projects. Anybody can view the issue.) > Components: Xalan > Affects Versions: 2.7.1, 2.7 > Environment: Platform Independent > Reporter: SHIN HWEI TAN > Labels: javadoc > Original Estimate: 0.05h > Remaining Estimate: 0.05h > > The Javadoc comment below states that the parameter v is "A non-null > ElemParam reference.": > /** > ... > * @param v A non-null ElemParam reference. > */ > public void setParam(ElemParam v) > However, the method return normally without throwing any exception when > called with a null v. > Suggested Fixes: > 1. Change "@param v A non-null ElemParam reference." to "@param v A non-null > ElemParam reference,null will be ignored." > or > 2. Remove "non-null" from @param. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org For additional commands, e-mail: xalan-dev-h...@xml.apache.org