Extract Class.getName() from String concatenation
This commit extracts a Class.getName() invocation from String concatenation in AbstractMonitoringInterceptor to avoid an issue related to profile pollution. Closes gh-25324
This commit is contained in:
parent
9876ca003b
commit
d08ce303f1
|
@ -103,7 +103,8 @@ public abstract class AbstractMonitoringInterceptor extends AbstractTraceInterce
|
||||||
if (this.logTargetClassInvocation && clazz.isInstance(invocation.getThis())) {
|
if (this.logTargetClassInvocation && clazz.isInstance(invocation.getThis())) {
|
||||||
clazz = invocation.getThis().getClass();
|
clazz = invocation.getThis().getClass();
|
||||||
}
|
}
|
||||||
return getPrefix() + clazz.getName() + '.' + method.getName() + getSuffix();
|
String clazzName = clazz.getName();
|
||||||
|
return getPrefix() + clazzName + '.' + method.getName() + getSuffix();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue