mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 05:19:07 +00:00
Prior to this commit, the Javadoc for ConcurrentReferenceHashMap stated that soft or weak references are used for both keys and values. However, the references are applied to the internal map entries, each of which holds strong references to its key and value. Consequently, an entry may be discarded even if its key and value are still strongly reachable from elsewhere, which differs from the semantics of WeakHashMap. This commit revises the class-level Javadoc as well as the Javadoc for the ReferenceType constants to document this behavior. See gh-24253 Closes gh-37357 Signed-off-by: rene.schakmann <rene.schakmann@reetgroup.com>