Skip to content

Commit de6a649

Browse files
committed
Polish
1 parent 2e41c2e commit de6a649

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/DisposableBeanAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ private DisposableBeanAdapter(Object bean, String beanName, boolean invokeDispos
177177
/**
178178
* If the current value of the given beanDefinition's "destroyMethodName" property is
179179
* {@link AbstractBeanDefinition#INFER_METHOD}, then attempt to infer a destroy method.
180-
* Candidate methods are currently limited to public, no-arg methods named "close"
181-
* (whether declared locally or inherited). The given BeanDefinition's
180+
* Candidate methods are currently limited to public, no-arg methods named "close" or
181+
* "shutdown" (whether declared locally or inherited). The given BeanDefinition's
182182
* "destroyMethodName" is updated to be null if no such method is found, otherwise set
183183
* to the name of the inferred method. This constant serves as the default for the
184184
* {@code @Bean#destroyMethod} attribute and the value of the constant may also be

0 commit comments

Comments
 (0)