jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1126971 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/ItemInfoBuilder.java
Date Tue, 24 May 2011 10:31:42 GMT
Author: mduerig
Date: Tue May 24 10:31:42 2011
New Revision: 1126971

URL: http://svn.apache.org/viewvc?rev=1126971&view=rev
Log:
JCR-2973: ItemInfoBuilder should not include PropertyInfos in ChildInfos

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/ItemInfoBuilder.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/ItemInfoBuilder.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/ItemInfoBuilder.java?rev=1126971&r1=1126970&r2=1126971&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/ItemInfoBuilder.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/ItemInfoBuilder.java
Tue May 24 10:31:42 2011
@@ -367,7 +367,12 @@ public final class ItemInfoBuilder {
         }
 
         private Iterator<ChildInfo> getChildInfos() {
-            return transformIterator(itemInfos.iterator(),
+            return transformIterator(filterIterator(itemInfos.iterator(),
+                    new Predicate<ItemInfo>(){
+                        public boolean evaluate(ItemInfo info) {
+                            return info.denotesNode();
+                        }
+                    }),
                     new Transformer<ItemInfo, ChildInfo>(){
                         public ChildInfo transform(ItemInfo info) {
                             return new ChildInfoImpl(



Mime
View raw message