Polishing
This commit is contained in:
@@ -403,8 +403,7 @@ public abstract class BeanUtils {
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve the JavaBeans {@code PropertyDescriptor}s of a given
|
||||
* class.
|
||||
* Retrieve the JavaBeans {@code PropertyDescriptor}s of a given class.
|
||||
* @param clazz the Class to retrieve the PropertyDescriptors for
|
||||
* @return an array of {@code PropertyDescriptors} for the given class
|
||||
* @throws BeansException if PropertyDescriptor look fails
|
||||
|
||||
@@ -115,7 +115,7 @@ class DisposableBeanAdapter implements DisposableBean, Runnable, Serializable {
|
||||
this.destroyMethod = determineDestroyMethod(destroyMethodName);
|
||||
if (this.destroyMethod == null) {
|
||||
if (beanDefinition.isEnforceDestroyMethod()) {
|
||||
throw new BeanDefinitionValidationException("Couldn't find a destroy method named '" +
|
||||
throw new BeanDefinitionValidationException("Could not find a destroy method named '" +
|
||||
destroyMethodName + "' on bean with name '" + beanName + "'");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user