jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r433613 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
Date Tue, 22 Aug 2006 12:39:19 GMT
Author: mreutegg
Date: Tue Aug 22 05:39:18 2006
New Revision: 433613

URL: http://svn.apache.org/viewvc?rev=433613&view=rev
Log:
Remove unnecessary calls to collect affected item states.

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java?rev=433613&r1=433612&r2=433613&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/SessionItemStateManager.java
Tue Aug 22 05:39:18 2006
@@ -16,7 +16,6 @@
  */
 package org.apache.jackrabbit.jcr2spi.state;
 
-import org.apache.commons.collections.iterators.IteratorChain;
 import org.apache.jackrabbit.jcr2spi.HierarchyManager;
 import org.apache.jackrabbit.jcr2spi.HierarchyManagerImpl;
 import org.apache.jackrabbit.jcr2spi.util.ReferenceChangeTracker;
@@ -338,24 +337,12 @@
      * @throws ItemStateException
      */
     private ChangeLog getChangeLog(ItemState itemState) throws StaleItemStateException, ItemStateException
{
-        ChangeLog changeLog = new ChangeLog();
-
         // build changelog for affected and decendant states only
+        ChangeLog changeLog = new ChangeLog();
         collectTransientStates(itemState, changeLog, true);
 
-        /**
-         * build set of item states which are within the scope of
-         * (i.e. affected by) this save operation
-         */
-        Iterator it = new IteratorChain(changeLog.modifiedStates(), changeLog.deletedStates());
-        Set affectedStates = new HashSet();
-        while (it.hasNext()) {
-            affectedStates.add(it.next());
-        }
-
         changeLog.checkIsSelfContained();
         changeLog.collectOperations(transientStateMgr.getOperations());
-
         return changeLog;
     }
 



Mime
View raw message