diff --git a/spring-core/src/main/java/org/springframework/aot/generate/ClassNameGenerator.java b/spring-core/src/main/java/org/springframework/aot/generate/ClassNameGenerator.java index 1758abaf0f..80ea3dc60d 100644 --- a/spring-core/src/main/java/org/springframework/aot/generate/ClassNameGenerator.java +++ b/spring-core/src/main/java/org/springframework/aot/generate/ClassNameGenerator.java @@ -27,9 +27,11 @@ import org.springframework.util.ClassUtils; import org.springframework.util.StringUtils; /** - * Generate unique class names based on target {@link Class} and a feature - * name. This class is stateful so the same instance should be used for all - * name generation. + * Generate unique class names based on a target {@link Class} and a feature + * name. + * + *
This class is stateful, so the same instance should be used for all name + * generation. * * @author Phillip Webb * @author Stephane Nicoll @@ -134,7 +136,7 @@ public final class ClassNameGenerator { /** - * Return a new {@link ClassNameGenerator} instance for the specified + * Create a new {@link ClassNameGenerator} instance for the specified * feature name prefix, keeping track of all the class names generated * by this instance. * @param featureNamePrefix the feature name prefix to use diff --git a/spring-core/src/main/java/org/springframework/aot/generate/GenerationContext.java b/spring-core/src/main/java/org/springframework/aot/generate/GenerationContext.java index e203e6ab07..f33223fde7 100644 --- a/spring-core/src/main/java/org/springframework/aot/generate/GenerationContext.java +++ b/spring-core/src/main/java/org/springframework/aot/generate/GenerationContext.java @@ -27,10 +27,10 @@ import org.springframework.aot.hint.SerializationHints; * *
A generation context provides: *
If a dedicated round of code generation is required while processing, it @@ -43,32 +43,34 @@ import org.springframework.aot.hint.SerializationHints; public interface GenerationContext { /** - * Return the {@link GeneratedClasses} being used by the context. All - * generated classes are written at the end of AOT processing. + * Get the {@link GeneratedClasses} used by the context. + *
All generated classes are written at the end of AOT processing. * @return the generated classes */ GeneratedClasses getGeneratedClasses(); /** - * Return the {@link GeneratedFiles} being used by the context. Used to - * write resource, java source or class bytecode files. + * Get the {@link GeneratedFiles} used by the context. + *
Used to write resource, java source, or class bytecode files. * @return the generated files */ GeneratedFiles getGeneratedFiles(); /** - * Return the {@link RuntimeHints} being used by the context. Used to record - * {@link ReflectionHints reflection}, {@link ResourceHints resource}, - * {@link SerializationHints serialization} and {@link ProxyHints proxy} - * hints so that the application can run as a native image. + * Get the {@link RuntimeHints} used by the context. + *
Used to record {@linkplain ReflectionHints reflection}, + * {@linkplain ResourceHints resource}, {@linkplain SerializationHints + * serialization}, and {@linkplain ProxyHints proxy} hints so that the + * application can run as a native image. * @return the runtime hints */ RuntimeHints getRuntimeHints(); /** - * Return a new {@link GenerationContext} instance using the specified + * Create a new {@link GenerationContext} instance using the specified * name to qualify generated assets for a dedicated round of code - * generation. If this name is already in use, a unique sequence is added + * generation. + *
If the specified name is already in use, a unique sequence is added * to ensure the name is unique. * @param name the name to use * @return a specialized {@link GenerationContext} for the specified name