Skip to content

Commit 564f33d

Browse files
committed
Polishing
1 parent 83acd5b commit 564f33d

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

Diff for: spring-beans/src/main/java/org/springframework/beans/factory/annotation/InitDestroyAnnotationBeanPostProcessor.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class InitDestroyAnnotationBeanPostProcessor implements DestructionAwareB
9090
private final transient LifecycleMetadata emptyLifecycleMetadata =
9191
new LifecycleMetadata(Object.class, Collections.emptyList(), Collections.emptyList()) {
9292
@Override
93-
public void checkConfigMembers(RootBeanDefinition beanDefinition) {
93+
public void checkInitDestroyMethods(RootBeanDefinition beanDefinition) {
9494
}
9595
@Override
9696
public void invokeInitMethods(Object target, String beanName) {
@@ -175,7 +175,7 @@ public BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registe
175175

176176
private LifecycleMetadata findInjectionMetadata(RootBeanDefinition beanDefinition, Class<?> beanType) {
177177
LifecycleMetadata metadata = findLifecycleMetadata(beanType);
178-
metadata.checkConfigMembers(beanDefinition);
178+
metadata.checkInitDestroyMethods(beanDefinition);
179179
return metadata;
180180
}
181181

@@ -330,7 +330,7 @@ public LifecycleMetadata(Class<?> targetClass, Collection<LifecycleElement> init
330330
this.destroyMethods = destroyMethods;
331331
}
332332

333-
public void checkConfigMembers(RootBeanDefinition beanDefinition) {
333+
public void checkInitDestroyMethods(RootBeanDefinition beanDefinition) {
334334
Set<LifecycleElement> checkedInitMethods = new LinkedHashSet<>(this.initMethods.size());
335335
for (LifecycleElement element : this.initMethods) {
336336
String methodIdentifier = element.getIdentifier();

Diff for: spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanDefinitionPropertiesCodeGenerator.java

+8-10
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,19 @@
5656

5757
/**
5858
* Internal code generator to set {@link RootBeanDefinition} properties.
59-
* <p>
60-
* Generates code in the following form:<blockquote><pre class="code">
59+
*
60+
* <p>Generates code in the following form:<pre class="code">
6161
* beanDefinition.setPrimary(true);
6262
* beanDefinition.setScope(BeanDefinition.SCOPE_PROTOTYPE);
6363
* ...
64-
* </pre></blockquote>
65-
* <p>
66-
* The generated code expects the following variables to be available:
67-
* <p>
64+
* </pre>
65+
*
66+
* <p>The generated code expects the following variables to be available:
6867
* <ul>
69-
* <li>{@code beanDefinition} - The {@link RootBeanDefinition} to
70-
* configure.</li>
68+
* <li>{@code beanDefinition}: the {@link RootBeanDefinition} to configure</li>
7169
* </ul>
72-
* <p>
73-
* Note that this generator does <b>not</b> set the {@link InstanceSupplier}.
70+
*
71+
* <p>Note that this generator does <b>not</b> set the {@link InstanceSupplier}.
7472
*
7573
* @author Phillip Webb
7674
* @author Stephane Nicoll

0 commit comments

Comments
 (0)