BUG-4808: remove reference to IdentityHashMap 87/51887/1
authorRobert Varga <rovarga@cisco.com>
Wed, 15 Feb 2017 00:59:03 +0000 (01:59 +0100)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Wed, 15 Feb 2017 08:30:45 +0000 (08:30 +0000)
Class documentation is misleading, as the internal cache is implemented
by a weak key/weak value equivalent.

Change-Id: Ie0d08ee990b725c5ed1a52cb074b6f72eff2a26f
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 0aa43abe473e1b7b07879008861ae8e0017dd8ed)

bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/CachingImportPolicy.java

index 3da89e1fe8c32869eac981602b8c2da56ff452f7..57023aa28a1284234c8446151dd7439987a04a1b 100644 (file)
@@ -11,10 +11,7 @@ import com.google.common.base.Preconditions;
 import com.google.common.collect.Interner;
 import com.google.common.collect.Interners;
 import com.google.common.collect.MapMaker;
-
-import java.util.IdentityHashMap;
 import java.util.concurrent.ConcurrentMap;
-
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 import javax.annotation.concurrent.NotThreadSafe;
@@ -25,7 +22,7 @@ import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes;
 
 /**
  * A caching decorator for {@link AbstractImportPolicy}. Performs caching of effective
- * attributes using an {@link IdentityHashMap} for fast lookup and reuse of resulting
+ * attributes using an identity-and-hashCode-based map for fast lookup and reuse of resulting
  * objects.
  */
 @NotThreadSafe