Remove method that was copied and pasted from slf4j instrumentation but seems not to be relevant here

This commit is contained in:
Luca Abbati 2019-06-20 17:55:43 -04:00
parent ecdf6664ef
commit c2bd5eefa0
No known key found for this signature in database
GPG Key ID: 74DBB952D9BA17F2
1 changed files with 0 additions and 12 deletions

View File

@ -36,18 +36,6 @@ public class ThreadContextInstrumentation extends Instrumenter.Default {
return named("org.apache.logging.log4j.ThreadContext");
}
@Override
public void postMatch(
final TypeDescription typeDescription,
final ClassLoader classLoader,
final JavaModule module,
final Class<?> classBeingRedefined,
final ProtectionDomain protectionDomain) {
if (classBeingRedefined != null) {
ThreadContextAdvice.mdcClassInitialized(classBeingRedefined);
}
}
@Override
public Map<? extends ElementMatcher<? super MethodDescription>, String> transformers() {
return singletonMap(isTypeInitializer(), ThreadContextAdvice.class.getName());