Return-Path: X-Original-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E1CE10360 for ; Fri, 26 Apr 2013 12:39:00 +0000 (UTC) Received: (qmail 29259 invoked by uid 500); 26 Apr 2013 12:39:00 -0000 Delivered-To: apmail-jackrabbit-oak-commits-archive@jackrabbit.apache.org Received: (qmail 29198 invoked by uid 500); 26 Apr 2013 12:38:58 -0000 Mailing-List: contact oak-commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-commits@jackrabbit.apache.org Received: (qmail 29175 invoked by uid 99); 26 Apr 2013 12:38:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 12:38:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 12:38:57 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5936C23888E7; Fri, 26 Apr 2013 12:38:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: oak-commits@jackrabbit.apache.org From: mduerig@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130426123837.5936C23888E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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, ChildNodeEntry>() { @Override - public ChildNodeEntry apply(Entry input) { - return new MemoryChildNodeEntry(input); + public ChildNodeEntry apply(Entry 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 entry) { - this(entry.getKey(), entry.getValue()); - } - @Override public String getName() { return name;