Skip to content

Commit 03620fc

Browse files
committed
Polishing
1 parent 1c10805 commit 03620fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

spring-context/src/main/java/org/springframework/context/aot/ApplicationContextAotGenerator.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -50,6 +50,7 @@ public class ApplicationContextAotGenerator {
5050
*/
5151
public ClassName processAheadOfTime(GenericApplicationContext applicationContext,
5252
GenerationContext generationContext) {
53+
5354
return withCglibClassHandler(new CglibClassHandler(generationContext), () -> {
5455
applicationContext.refreshForAotProcessing(generationContext.getRuntimeHints());
5556
ApplicationContextInitializationCodeGenerator codeGenerator =

spring-context/src/main/java/org/springframework/context/aot/ReflectiveProcessorAotContributionBuilder.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 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.
@@ -100,6 +100,7 @@ public BeanFactoryInitializationAotContribution build() {
100100
return (!this.classes.isEmpty() ? new AotContribution(this.classes) : null);
101101
}
102102

103+
103104
private static class AotContribution implements BeanFactoryInitializationAotContribution {
104105

105106
private final Class<?>[] classes;
@@ -113,9 +114,9 @@ public void applyTo(GenerationContext generationContext, BeanFactoryInitializati
113114
RuntimeHints runtimeHints = generationContext.getRuntimeHints();
114115
registrar.registerRuntimeHints(runtimeHints, this.classes);
115116
}
116-
117117
}
118118

119+
119120
private static class ReflectiveClassPathScanner extends ClassPathScanningCandidateComponentProvider {
120121

121122
@Nullable

0 commit comments

Comments
 (0)