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/01/18 17:14:13 UTC

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

angela created OAK-569:
--------------------------

             Summary: 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


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