Hoist Class.getName() from String concatenation to dodge an issue related to profile pollution
This commit is contained in:
committed by
Juergen Hoeller
parent
7c84695333
commit
484006ce90
@@ -73,8 +73,8 @@ public class SimpleTraceInterceptor extends AbstractTraceInterceptor {
|
||||
* @return the description
|
||||
*/
|
||||
protected String getInvocationDescription(MethodInvocation invocation) {
|
||||
return "method '" + invocation.getMethod().getName() + "' of class [" +
|
||||
invocation.getThis().getClass().getName() + "]";
|
||||
String className = invocation.getThis().getClass().getName();
|
||||
return "method '" + invocation.getMethod().getName() + "' of class [" + className + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user