From de6a649071767180ee6d91bc7fc03c8f208f4616 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 9 Jul 2015 11:29:48 +0200 Subject: [PATCH] Polish --- .../beans/factory/support/DisposableBeanAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/DisposableBeanAdapter.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/DisposableBeanAdapter.java index dedc75cf49a..4a885395574 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/DisposableBeanAdapter.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/DisposableBeanAdapter.java @@ -177,8 +177,8 @@ class DisposableBeanAdapter implements DisposableBean, Runnable, Serializable { /** * If the current value of the given beanDefinition's "destroyMethodName" property is * {@link AbstractBeanDefinition#INFER_METHOD}, then attempt to infer a destroy method. - * Candidate methods are currently limited to public, no-arg methods named "close" - * (whether declared locally or inherited). The given BeanDefinition's + * Candidate methods are currently limited to public, no-arg methods named "close" or + * "shutdown" (whether declared locally or inherited). The given BeanDefinition's * "destroyMethodName" is updated to be null if no such method is found, otherwise set * to the name of the inferred method. This constant serves as the default for the * {@code @Bean#destroyMethod} attribute and the value of the constant may also be