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)
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;
/**
* 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