jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1176920 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ChangeLog.java
Date Wed, 28 Sep 2011 15:27:58 GMT
Author: mduerig
Date: Wed Sep 28 15:27:58 2011
New Revision: 1176920

URL: http://svn.apache.org/viewvc?rev=1176920&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)
refactor: use Set instead of List

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ChangeLog.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ChangeLog.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ChangeLog.java?rev=1176920&r1=1176919&r2=1176920&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ChangeLog.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ChangeLog.java
Wed Sep 28 15:27:58 2011
@@ -28,7 +28,7 @@ import org.slf4j.LoggerFactory;
 import javax.jcr.InvalidItemStateException;
 import javax.jcr.RepositoryException;
 import javax.jcr.nodetype.ConstraintViolationException;
-import java.util.ArrayList;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
@@ -73,8 +73,8 @@ public class ChangeLog {
      * states to EXISTING.
      */
     public void persisted() throws RepositoryException {
-        final List<NodeState> changedMixins = new ArrayList<NodeState>();
-        final List<NodeState> changedPrimaryTypes = new ArrayList<NodeState>();
+        final Set<NodeState> changedMixins = new HashSet<NodeState>();
+        final Set<NodeState> changedPrimaryTypes = new HashSet<NodeState>();
 
         OperationVisitor operationVisitor = new AbstractOperationVisitor() {
             @Override



Mime
View raw message