You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/03/17 20:24:14 UTC

svn commit: r1457527 - in /commons/proper/collections/trunk/src: main/java/org/apache/commons/collections/map/ test/java/org/apache/commons/collections/map/

Author: tn
Date: Sun Mar 17 19:24:14 2013
New Revision: 1457527

URL: http://svn.apache.org/r1457527
Log:
[COLLECTIONS-351] Moved IdentityMap to tests.

Added:
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/IdentityMap.java
      - copied, changed from r1457416, commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/IdentityMap.java
Removed:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/IdentityMap.java
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/IdentityMapTest.java
Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/package-info.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/package-info.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/package-info.java?rev=1457527&r1=1457526&r2=1457527&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/package-info.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/package-info.java Sun Mar 17 19:24:14 2013
@@ -28,7 +28,6 @@
  *   <li>CaseInsensitiveMap - map that compares keys in a case insensitive way
  *   <li>CompositeMap - map that combines multiple maps into a single view
  *   <li>HashedMap - general purpose HashMap replacement supporting MapIterator
- *   <li>IdentityMap - map that uses == for comparison instead of equals()
  *   <li>Flat3Map - designed for good performance at size 3 or less
  *   <li>LinkedMap - a hash map that maintains insertion order, supporting OrderedMapIterator
  *   <li>LRUMap - a hash map that maintains a maximum size by removing the least recently used entries

Copied: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/IdentityMap.java (from r1457416, commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/IdentityMap.java)
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/IdentityMap.java?p2=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/IdentityMap.java&p1=commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/IdentityMap.java&r1=1457416&r2=1457527&rev=1457527&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/map/IdentityMap.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/IdentityMap.java Sun Mar 17 19:24:14 2013
@@ -36,6 +36,9 @@ import java.util.Map;
  * appropriate synchronization. The simplest approach is to wrap this map
  * using {@link java.util.Collections#synchronizedMap(Map)}. This class may throw
  * exceptions when accessed by concurrent threads without synchronization.
+ * <p>
+ * From 4.0, this class is replaced by java.util.IdentityHashMap but kept as a
+ * test-class because it is still used by the ReferenceIdentityMapTest.
  *
  * @since 3.0
  * @version $Id$