diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/SmartInstantiationAwareBeanPostProcessor.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/SmartInstantiationAwareBeanPostProcessor.java index cd54203aea..86455b173c 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/config/SmartInstantiationAwareBeanPostProcessor.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/SmartInstantiationAwareBeanPostProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,20 +87,20 @@ public interface SmartInstantiationAwareBeanPostProcessor extends InstantiationA * typically for the purpose of resolving a circular reference. *
This callback gives post-processors a chance to expose a wrapper * early - that is, before the target bean instance is fully initialized. - * The exposed object should be equivalent to the what + * The exposed object should be equivalent to what * {@link #postProcessBeforeInitialization} / {@link #postProcessAfterInitialization} * would expose otherwise. Note that the object returned by this method will - * be used as bean reference unless the post-processor returns a different - * wrapper from said post-process callbacks. In other words: Those post-process + * be used as the bean reference unless the post-processor returns a different + * wrapper from said post-process callbacks. In other words, those post-process * callbacks may either eventually expose the same reference or alternatively * return the raw bean instance from those subsequent callbacks (if the wrapper * for the affected bean has been built for a call to this method already, - * it will be exposes as final bean reference by default). + * it will be exposed as the final bean reference by default). *
The default implementation returns the given {@code bean} as-is. * @param bean the raw bean instance * @param beanName the name of the bean - * @return the object to expose as bean reference - * (typically with the passed-in bean instance as default) + * @return the object to expose as the bean reference + * (typically the passed-in bean instance as default) * @throws org.springframework.beans.BeansException in case of errors */ default Object getEarlyBeanReference(Object bean, String beanName) throws BeansException {