We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9ecaf6 commit f27b949Copy full SHA for f27b949
spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java
@@ -21,7 +21,7 @@
21
import java.beans.Introspector;
22
import java.beans.PropertyDescriptor;
23
import java.lang.ref.Reference;
24
-import java.lang.ref.WeakReference;
+import java.lang.ref.SoftReference;
25
import java.util.HashSet;
26
import java.util.Iterator;
27
import java.util.LinkedHashMap;
@@ -196,7 +196,7 @@ static CachedIntrospectionResults forClass(Class<?> beanClass) throws BeansExcep
196
}
197
results = new CachedIntrospectionResults(beanClass);
198
synchronized (classCache) {
199
- classCache.put(beanClass, new WeakReference<CachedIntrospectionResults>(results));
+ classCache.put(beanClass, new SoftReference<CachedIntrospectionResults>(results));
200
201
202
0 commit comments