jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r915108 - /jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/NodeInfoImpl.java
Date Mon, 22 Feb 2010 23:17:34 GMT
Author: mduerig
Date: Mon Feb 22 23:17:34 2010
New Revision: 915108

URL: http://svn.apache.org/viewvc?rev=915108&view=rev
Log:
JCR-2500: spi2davex NodeInfoImpl should use HashSet instead of ArrayList for childInfos
using LinkedHashSet to guarantee order of children 

Modified:
    jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/NodeInfoImpl.java

Modified: jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/NodeInfoImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/NodeInfoImpl.java?rev=915108&r1=915107&r2=915108&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/NodeInfoImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/NodeInfoImpl.java
Mon Feb 22 23:17:34 2010
@@ -18,7 +18,7 @@
 
 import java.util.ArrayList;
 import java.util.Collections;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Set;
@@ -50,7 +50,7 @@
     private Name primaryNodeTypeName;
     private Name[] mixinNodeTypeNames = new Name[0];
 
-    private final Set propertyInfos = new HashSet();
+    private final Set propertyInfos = new LinkedHashSet();
     private Set<ChildInfo> childInfos = null;
 
     private final int numberOfChildNodes = -1;
@@ -124,7 +124,7 @@
 
     void addChildInfo(ChildInfo childInfo) {
         if (childInfos == null) {
-            childInfos = new HashSet<ChildInfo>();
+            childInfos = new LinkedHashSet<ChildInfo>();
         }
         childInfos.add(childInfo);
     }



Mime
View raw message