jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1476171 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryChildNodeEntry.java
Date Fri, 26 Apr 2013 12:38:37 GMT
Author: mduerig
Date: Fri Apr 26 12:38:36 2013
New Revision: 1476171

URL: http://svn.apache.org/r1476171
Log:
simplify

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryChildNodeEntry.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryChildNodeEntry.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryChildNodeEntry.java?rev=1476171&r1=1476170&r2=1476171&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryChildNodeEntry.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MemoryChildNodeEntry.java
Fri Apr 26 12:38:36 2013
@@ -20,7 +20,6 @@ package org.apache.jackrabbit.oak.plugin
 
 import static com.google.common.base.Preconditions.checkNotNull;
 
-import java.util.Map;
 import java.util.Map.Entry;
 
 import com.google.common.base.Function;
@@ -40,8 +39,8 @@ public class MemoryChildNodeEntry extend
                 set,
                 new Function<Entry<String, ? extends NodeState>, ChildNodeEntry>()
{
                     @Override
-                    public ChildNodeEntry apply(Entry<String, ? extends NodeState>
input) {
-                        return new MemoryChildNodeEntry(input);
+                    public ChildNodeEntry apply(Entry<String, ? extends NodeState>
entry) {
+                        return new MemoryChildNodeEntry(entry.getKey(), entry.getValue());
                     }
                 });
     }
@@ -62,16 +61,6 @@ public class MemoryChildNodeEntry extend
         this.node = checkNotNull(node);
     }
 
-    /**
-     * Utility constructor that copies the name and referenced
-     * child node state from the given map entry.
-     *
-     * @param entry map entry
-     */
-    public MemoryChildNodeEntry(Map.Entry<String, ? extends NodeState> entry) {
-        this(entry.getKey(), entry.getValue());
-    }
-
     @Override
     public String getName() {
         return name;



Mime
View raw message