File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/support Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -261,7 +261,7 @@ private Method determineDestroyMethod(String destroyMethodName) {
261
261
if (destroyMethod != null ) {
262
262
return destroyMethod ;
263
263
}
264
- for (Class <?> beanInterface : beanClass . getInterfaces ( )) {
264
+ for (Class <?> beanInterface : ClassUtils . getAllInterfacesForClass ( beanClass )) {
265
265
destroyMethod = findDestroyMethod (beanInterface , methodName );
266
266
if (destroyMethod != null ) {
267
267
return destroyMethod ;
You can’t perform that action at this time.
0 commit comments