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 31be0ccf630..050c9d1d11a 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 @@ -647,8 +647,8 @@ public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess /** * Specify whether to allow access to non-public constructors and methods, - * for the case of externalized metadata pointing to those. - * The default is {@code true}; switch this to {@false} for public access only. + * for the case of externalized metadata pointing to those. The default is + * {@code true}; switch this to {@code false} for public access only. *

This applies to constructor resolution, factory method resolution, * and also init/destroy methods. Bean property accessors have to be public * in any case and are not affected by this setting.