Skip to content

Commit a7d5fbf

Browse files
committed
Fix log messages for init/destroy method registration
1 parent 84de100 commit a7d5fbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/annotation/InitDestroyAnnotationBeanPostProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -302,7 +302,7 @@ public void checkConfigMembers(RootBeanDefinition beanDefinition) {
302302
beanDefinition.registerExternallyManagedInitMethod(methodIdentifier);
303303
checkedInitMethods.add(element);
304304
if (logger.isTraceEnabled()) {
305-
logger.trace("Registered init method on class [" + this.targetClass.getName() + "]: " + element);
305+
logger.trace("Registered init method on class [" + this.targetClass.getName() + "]: " + methodIdentifier);
306306
}
307307
}
308308
}
@@ -313,7 +313,7 @@ public void checkConfigMembers(RootBeanDefinition beanDefinition) {
313313
beanDefinition.registerExternallyManagedDestroyMethod(methodIdentifier);
314314
checkedDestroyMethods.add(element);
315315
if (logger.isTraceEnabled()) {
316-
logger.trace("Registered destroy method on class [" + this.targetClass.getName() + "]: " + element);
316+
logger.trace("Registered destroy method on class [" + this.targetClass.getName() + "]: " + methodIdentifier);
317317
}
318318
}
319319
}

0 commit comments

Comments
 (0)