jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1478822 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/NamedTemplate.java
Date Fri, 03 May 2013 14:49:38 GMT
Author: angela
Date: Fri May  3 14:49:38 2013
New Revision: 1478822

URL: http://svn.apache.org/r1478822
Log:
OAK-569 : NamedTemplate: Null-test for @Nonnull parameter

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/NamedTemplate.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/NamedTemplate.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/NamedTemplate.java?rev=1478822&r1=1478821&r2=1478822&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/NamedTemplate.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/NamedTemplate.java
Fri May  3 14:49:38 2013
@@ -132,7 +132,7 @@ abstract class NamedTemplate {
      */
     @Nonnull
     protected String getOakNameOrThrowConstraintViolation(
-            @Nonnull String jcrName) throws ConstraintViolationException {
+            @CheckForNull String jcrName) throws ConstraintViolationException {
         if (jcrName == null) {
             throw new ConstraintViolationException("Missing JCR name");
         }
@@ -175,7 +175,7 @@ abstract class NamedTemplate {
      */
     @Nonnull
     protected String[] getOakNamesOrThrowConstraintViolation(
-            @Nonnull String[] jcrNames) throws ConstraintViolationException {
+            @CheckForNull String[] jcrNames) throws ConstraintViolationException {
         if (jcrNames != null) {
             String[] oakNames = new String[jcrNames.length];
             for (int i = 0; i < jcrNames.length; i++) {



Mime
View raw message