You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2013/05/03 16:50:17 UTC

[jira] [Resolved] (OAK-569) NamedTemplate: Null-test for @Nonnull parameter

     [ https://issues.apache.org/jira/browse/OAK-569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela resolved OAK-569.
------------------------

    Resolution: Fixed

Committed revision 1478822.
                
> NamedTemplate: Null-test for @Nonnull parameter
> -----------------------------------------------
>
>                 Key: OAK-569
>                 URL: https://issues.apache.org/jira/browse/OAK-569
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: angela
>            Priority: Minor
>
> the NamedTemplate in the nodetype package contains two methods that
> define the jcrName param to be nonnull but then tests for jcrName being
> null and throws an exception if that's the case.
> shouldn't the param be rather be defined @CheckForNull?
> - getOakNameOrThrowConstraintViolation (line 134 ff)
> - getOakNamesOrThrowConstraintViolation (line 177 ff)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira