Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 95106 invoked from network); 17 Sep 2009 15:33:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Sep 2009 15:33:14 -0000 Received: (qmail 17252 invoked by uid 500); 17 Sep 2009 15:33:13 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 17194 invoked by uid 500); 17 Sep 2009 15:33:13 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 17185 invoked by uid 99); 17 Sep 2009 15:33:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2009 15:33:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Thu, 17 Sep 2009 15:33:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F3BF323888D7; Thu, 17 Sep 2009 15:32:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r816238 - in /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi: lock/LockManagerImpl.java util/ReferenceChangeTracker.java Date: Thu, 17 Sep 2009 15:32:48 -0000 To: commits@jackrabbit.apache.org From: reschke@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090917153248.F3BF323888D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: reschke Date: Thu Sep 17 15:32:48 2009 New Revision: 816238 URL: http://svn.apache.org/viewvc?rev=816238&view=rev Log: JCR-2087: parametrize generic types Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java?rev=816238&r1=816237&r2=816238&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java (original) +++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java Thu Sep 17 15:32:48 2009 @@ -220,7 +220,7 @@ */ public void removeLockToken(String lt) throws LockException, RepositoryException { // JSR170 v. 1.0.1 defines that the token of a session-scoped lock may - // not be moved over to another session. thus removal ist not possible + // not be moved over to another session. Thus removal is not possible // and the lock is always present in the lock map. Iterator it = lockMap.values().iterator(); boolean found = false; @@ -285,7 +285,7 @@ * Note, that this methods does NOT check if the given node state would * be affected by the lock present on an ancestor state. * Note, that in certain cases it might not be possible to detect a lock - * being present due to the fact that the hierarchy might be imcomplete or + * being present due to the fact that the hierarchy might be incomplete or * not even readable completely. For this reason it seem equally reasonable * to search for jcr:lockIsDeep property only and omitting all kind of * verification regarding nodetypes present. @@ -798,7 +798,7 @@ // unless this lock is session-scoped (token is never transfered) // and the session isn't the owner yet (token already present), // it could be that this affects this lock and session became - // lock holder -> releoad info to assert. + // lock holder -> reload info to assert. lockState.reloadLockInfo(); } } Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java?rev=816238&r1=816237&r2=816238&view=diff ============================================================================== --- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java (original) +++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java Thu Sep 17 15:32:48 2009 @@ -27,6 +27,8 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; +import java.util.List; +import java.util.Map; /** * Simple helper class that can be used to keep track of uuid mappings @@ -41,11 +43,11 @@ /** * mapping to of mix:referenceable nodes */ - private final HashMap uuidMap = new HashMap(); + private final Map uuidMap = new HashMap(); /** * list of processed reference properties that might need correction */ - private final ArrayList references = new ArrayList(); + private final List references = new ArrayList(); /** * Creates a new instance. @@ -91,7 +93,7 @@ try { String oldValue = oldReference.getString(); if (uuidMap.containsKey(oldValue)) { - String newValue = uuidMap.get(oldValue).toString(); + String newValue = uuidMap.get(oldValue); remapped = factory.create(newValue, PropertyType.REFERENCE); } } catch (RepositoryException e) { @@ -113,7 +115,7 @@ } } - public Iterator getReferences() { + public Iterator getReferences() { return references.iterator(); } }