jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppakul...@apache.org
Subject svn commit: r592957 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Date Wed, 07 Nov 2007 23:36:02 GMT
Author: ppakulski
Date: Wed Nov  7 15:35:57 2007
New Revision: 592957

URL: http://svn.apache.org/viewvc?rev=592957&view=rev
Log:
checkout improvement (JCR-1209)

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=592957&r1=592956&r2=592957&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
Wed Nov  7 15:35:57 2007
@@ -3020,13 +3020,10 @@
         // check lock status
         checkLock();
 
-        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();
+        internalSetProperty(NameConstants.JCR_ISCHECKEDOUT, InternalValue.create(true));
+        internalSetProperty(NameConstants.JCR_PREDECESSORS, new InternalValue[] { 
+                    InternalValue.create(new UUID(getBaseVersion().getUUID())) });
+        save();
     }
 
     /**



Mime
View raw message