End javadoc generated AOT with a period consistently
Closes gh-29357
This commit is contained in:
parent
fa95bf4dc1
commit
c20efba45c
|
@ -138,7 +138,7 @@ class BeanDefinitionMethodGenerator {
|
|||
ClassName topLevelClassName = target.topLevelClassName();
|
||||
GeneratedClass generatedClass = generationContext.getGeneratedClasses()
|
||||
.getOrAddForFeatureComponent("BeanDefinitions", topLevelClassName, type -> {
|
||||
type.addJavadoc("Bean definitions for {@link $T}", topLevelClassName);
|
||||
type.addJavadoc("Bean definitions for {@link $T}.", topLevelClassName);
|
||||
type.addModifiers(Modifier.PUBLIC);
|
||||
});
|
||||
|
||||
|
@ -159,7 +159,7 @@ class BeanDefinitionMethodGenerator {
|
|||
|
||||
private static GeneratedClass createInnerClass(GeneratedClass generatedClass, String name, ClassName target) {
|
||||
return generatedClass.getOrAdd(name, type -> {
|
||||
type.addJavadoc("Bean definitions for {@link $T}", target);
|
||||
type.addJavadoc("Bean definitions for {@link $T}.", target);
|
||||
type.addModifiers(Modifier.PUBLIC, Modifier.STATIC);
|
||||
});
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ class BeanDefinitionMethodGenerator {
|
|||
this.aotContributions.forEach(aotContribution -> aotContribution.applyTo(generationContext, codeGenerator));
|
||||
|
||||
return generatedMethods.add("getBeanDefinition", method -> {
|
||||
method.addJavadoc("Get the $L definition for '$L'",
|
||||
method.addJavadoc("Get the $L definition for '$L'.",
|
||||
(!this.registeredBean.isInnerBean()) ? "bean" : "inner-bean",
|
||||
getName());
|
||||
method.addModifiers(modifier, Modifier.STATIC);
|
||||
|
|
|
@ -594,7 +594,7 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
|
|||
}
|
||||
|
||||
private void generateAddPostProcessorMethod(MethodSpec.Builder method, Map<String, String> mappings) {
|
||||
method.addJavadoc("Add ImportAwareBeanPostProcessor to support ImportAware beans");
|
||||
method.addJavadoc("Add ImportAwareBeanPostProcessor to support ImportAware beans.");
|
||||
method.addModifiers(Modifier.PRIVATE);
|
||||
method.addParameter(DefaultListableBeanFactory.class, BEAN_FACTORY_VARIABLE);
|
||||
method.addCode(generateAddPostProcessorCode(mappings));
|
||||
|
|
|
@ -830,7 +830,7 @@ public class PersistenceAnnotationBeanPostProcessor implements InstantiationAwar
|
|||
private void generateGetEntityManagerMethod(MethodSpec.Builder method, PersistenceElement injectedElement) {
|
||||
String unitName = injectedElement.unitName;
|
||||
Properties properties = injectedElement.properties;
|
||||
method.addJavadoc("Get the '$L' {@link $T}",
|
||||
method.addJavadoc("Get the '$L' {@link $T}.",
|
||||
(StringUtils.hasLength(unitName)) ? unitName : "default",
|
||||
EntityManager.class);
|
||||
method.addModifiers(javax.lang.model.element.Modifier.PUBLIC,
|
||||
|
|
Loading…
Reference in New Issue