jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r387247 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
Date Mon, 20 Mar 2006 16:58:58 GMT
Author: stefan
Date: Mon Mar 20 08:58:56 2006
New Revision: 387247

URL: http://svn.apache.org/viewcvs?rev=387247&view=rev
Log:
trivial cosmetic change

Modified:
    incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java?rev=387247&r1=387246&r2=387247&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/BatchedItemOperations.java
Mon Mar 20 08:58:56 2006
@@ -1716,26 +1716,20 @@
                      * copied properties declared by mix:versionable need to be
                      * adjusted accordingly.
                      */
-                    // jcr:versionHistory
                     if (propName.equals(QName.JCR_VERSIONHISTORY)) {
+                        // jcr:versionHistory
                         VersionHistory vh = getOrCreateVersionHistory(newState);
                         newChildState.setValues(new InternalValue[]{InternalValue.create(new
UUID(vh.getUUID()))});
-                    }
-
-                    // jcr:baseVersion
-                    if (propName.equals(QName.JCR_BASEVERSION)) {
+                    } else if (propName.equals(QName.JCR_BASEVERSION)) {
+                        // jcr:baseVersion
                         VersionHistory vh = getOrCreateVersionHistory(newState);
                         newChildState.setValues(new InternalValue[]{InternalValue.create(new
UUID(vh.getRootVersion().getUUID()))});
-                    }
-
-                    // jcr:predecessors
-                    if (propName.equals(QName.JCR_PREDECESSORS)) {
+                    } else if (propName.equals(QName.JCR_PREDECESSORS)) {
+                        // jcr:predecessors
                         VersionHistory vh = getOrCreateVersionHistory(newState);
                         newChildState.setValues(new InternalValue[]{InternalValue.create(new
UUID(vh.getRootVersion().getUUID()))});
-                    }
-
-                    // jcr:isCheckedOut
-                    if (propName.equals(QName.JCR_ISCHECKEDOUT)) {
+                    } else if (propName.equals(QName.JCR_ISCHECKEDOUT)) {
+                        // jcr:isCheckedOut
                         newChildState.setValues(new InternalValue[]{InternalValue.create(true)});
                     }
                 }



Mime
View raw message