Skip to content

Commit f629fc9

Browse files
committed
Polish Javadoc for SmartInstantiationAwareBeanPostProcessor
1 parent 589b6db commit f629fc9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/config/SmartInstantiationAwareBeanPostProcessor.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -87,20 +87,20 @@ default Constructor<?>[] determineCandidateConstructors(Class<?> beanClass, Stri
8787
* typically for the purpose of resolving a circular reference.
8888
* <p>This callback gives post-processors a chance to expose a wrapper
8989
* early - that is, before the target bean instance is fully initialized.
90-
* The exposed object should be equivalent to the what
90+
* The exposed object should be equivalent to what
9191
* {@link #postProcessBeforeInitialization} / {@link #postProcessAfterInitialization}
9292
* would expose otherwise. Note that the object returned by this method will
93-
* be used as bean reference unless the post-processor returns a different
94-
* wrapper from said post-process callbacks. In other words: Those post-process
93+
* be used as the bean reference unless the post-processor returns a different
94+
* wrapper from said post-process callbacks. In other words, those post-process
9595
* callbacks may either eventually expose the same reference or alternatively
9696
* return the raw bean instance from those subsequent callbacks (if the wrapper
9797
* for the affected bean has been built for a call to this method already,
98-
* it will be exposes as final bean reference by default).
98+
* it will be exposed as the final bean reference by default).
9999
* <p>The default implementation returns the given {@code bean} as-is.
100100
* @param bean the raw bean instance
101101
* @param beanName the name of the bean
102-
* @return the object to expose as bean reference
103-
* (typically with the passed-in bean instance as default)
102+
* @return the object to expose as the bean reference
103+
* (typically the passed-in bean instance as default)
104104
* @throws org.springframework.beans.BeansException in case of errors
105105
*/
106106
default Object getEarlyBeanReference(Object bean, String beanName) throws BeansException {

0 commit comments

Comments
 (0)