jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppakul...@apache.org
Subject svn commit: r593495 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Date Fri, 09 Nov 2007 11:34:51 GMT
Author: ppakulski
Date: Fri Nov  9 03:34:50 2007
New Revision: 593495

URL: http://svn.apache.org/viewvc?rev=593495&view=rev
Log:
reverted JCR-1209 improvement

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=593495&r1=593494&r2=593495&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Fri Nov  9 03:34:50 2007
@@ -3020,10 +3020,13 @@
         // check lock status
         checkLock();
 
-        internalSetProperty(NameConstants.JCR_ISCHECKEDOUT, InternalValue.create(true));
-        internalSetProperty(NameConstants.JCR_PREDECESSORS, new InternalValue[] { 
-                    InternalValue.create(new UUID(getBaseVersion().getUUID())) });
-        save();
+        Property prop = internalSetProperty(NameConstants.JCR_ISCHECKEDOUT, InternalValue.create(true));
+        prop.save();
+        prop = internalSetProperty(NameConstants.JCR_PREDECESSORS,
+                new InternalValue[]{
+                    InternalValue.create(new UUID(getBaseVersion().getUUID()))
+                });
+        prop.save();
     }
 
     /**



Mime
View raw message