Skip to content

Commit 87179b0

Browse files
committed
Optimized Introspector.flushFromCaches calls to skip Object.class
Issue: SPR-11356
1 parent 23249cd commit 87179b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ private CachedIntrospectionResults(Class<?> beanClass) throws BeansException {
295295
Introspector.flushFromCaches(classToFlush);
296296
classToFlush = classToFlush.getSuperclass();
297297
}
298-
while (classToFlush != null);
298+
while (classToFlush != null && classToFlush != Object.class);
299299
}
300300

301301
if (logger.isTraceEnabled()) {

0 commit comments

Comments
 (0)