jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-569) NamedTemplate: Null-test for @Nonnull parameter
Date Fri, 03 May 2013 14:50:17 GMT

     [ 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

Mime
View raw message