|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2022 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -138,7 +138,7 @@ public abstract class AbstractAutoProxyCreator extends ProxyProcessorSupport
|
138 | 138 |
|
139 | 139 | private final Set<String> targetSourcedBeans = Collections.newSetFromMap(new ConcurrentHashMap<>(16));
|
140 | 140 |
|
141 |
| - private final Map<Object, Object> earlyProxyReferences = new ConcurrentHashMap<>(16); |
| 141 | + private final Map<Object, Object> earlyBeanReferences = new ConcurrentHashMap<>(16); |
142 | 142 |
|
143 | 143 | private final Map<Object, Class<?>> proxyTypes = new ConcurrentHashMap<>(16);
|
144 | 144 |
|
@@ -265,7 +265,7 @@ public Constructor<?>[] determineCandidateConstructors(Class<?> beanClass, Strin
|
265 | 265 | @Override
|
266 | 266 | public Object getEarlyBeanReference(Object bean, String beanName) {
|
267 | 267 | Object cacheKey = getCacheKey(bean.getClass(), beanName);
|
268 |
| - this.earlyProxyReferences.put(cacheKey, bean); |
| 268 | + this.earlyBeanReferences.put(cacheKey, bean); |
269 | 269 | return wrapIfNecessary(bean, beanName, cacheKey);
|
270 | 270 | }
|
271 | 271 |
|
@@ -314,7 +314,7 @@ public PropertyValues postProcessProperties(PropertyValues pvs, Object bean, Str
|
314 | 314 | public Object postProcessAfterInitialization(@Nullable Object bean, String beanName) {
|
315 | 315 | if (bean != null) {
|
316 | 316 | Object cacheKey = getCacheKey(bean.getClass(), beanName);
|
317 |
| - if (this.earlyProxyReferences.remove(cacheKey) != bean) { |
| 317 | + if (this.earlyBeanReferences.remove(cacheKey) != bean) { |
318 | 318 | return wrapIfNecessary(bean, beanName, cacheKey);
|
319 | 319 | }
|
320 | 320 | }
|
|
0 commit comments