diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java index 34b8d72d12..33f20bbac4 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java @@ -36,10 +36,9 @@ import org.springframework.util.ObjectUtils; import org.springframework.util.StringUtils; /** - * Base class for concrete, full-fledged - * {@link org.springframework.beans.factory.config.BeanDefinition} classes, + * Base class for concrete, full-fledged {@link BeanDefinition} classes, * factoring out common properties of {@link GenericBeanDefinition}, - * {@link RootBeanDefinition} and {@link ChildBeanDefinition}. + * {@link RootBeanDefinition}, and {@link ChildBeanDefinition}. * *

The autowire constants match the ones defined in the * {@link org.springframework.beans.factory.config.AutowireCapableBeanFactory} @@ -57,8 +56,8 @@ public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess implements BeanDefinition, Cloneable { /** - * Constant for the default scope name: "", equivalent to singleton status - * but to be overridden from a parent bean definition (if applicable). + * Constant for the default scope name: {@code ""}, equivalent to singleton + * status unless overridden from a parent bean definition (if applicable). */ public static final String SCOPE_DEFAULT = ""; @@ -400,11 +399,11 @@ public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess /** * Set the name of the target scope for the bean. - *

Default is singleton status, although this is only applied once + *

The default is singleton status, although this is only applied once * a bean definition becomes active in the containing factory. A bean - * definition may eventually inherit its scope from a parent bean definitionFor this - * reason, the default scope name is empty (empty String), with - * singleton status being assumed until a resolved scope will be set. + * definition may eventually inherit its scope from a parent bean definition. + * For this reason, the default scope name is an empty string (i.e., {@code ""}), + * with singleton status being assumed until a resolved scope is set. * @see #SCOPE_SINGLETON * @see #SCOPE_PROTOTYPE */