in TransformCore/src/main/java/com/facebook/ads/injkit/threadcheck/ThreadCheckInjector.java [85:110]
private void processMethod(
ClassNode classNode,
MethodNode method,
Checking defaultChecking,
boolean allowCodeInjection,
Model model)
throws AnnotationProcessingException {
// Skip class initialization methods because we cannot override their thread check
// parameters.
if (method.name.equals(AsmNameUtils.CL_INIT)) {
return;
}
// Remove the annotations even if disabled.
removeChecking(method);
Checking checking = computeMethodChecking(classNode, method, model).orDefault(defaultChecking);
if (checking == Checking.NOT_DEFINED
|| checking == Checking.IS_ANY
|| !config.isEnabled()
|| !allowCodeInjection) {
return;
}
addLooperCheck(classNode, method, checking == Checking.IS_UI);
}