in TransformCore/src/main/java/com/facebook/ads/injkit/threadcheck/ThreadCheckConfigurationParser.java [51:68]
public ThreadCheckConfiguration finish(ParseContext ctx)
throws InvalidAnnotationProcessorConfigurationException {
if (enabledSetting.isSet() && enabledSetting.asBoolean(ctx)) {
return new ThreadCheckConfiguration(
true,
uiThreadAnnotationClass.getValue(ctx),
workerThreadAnnotationClass.getValue(ctx),
anyThreadAnnotationClass.getValue(ctx),
violationHandlerClass.getValue(ctx));
}
return new ThreadCheckConfiguration(
false,
uiThreadAnnotationClass.isSet() ? uiThreadAnnotationClass.getValue(ctx) : null,
workerThreadAnnotationClass.isSet() ? workerThreadAnnotationClass.getValue(ctx) : null,
anyThreadAnnotationClass.isSet() ? anyThreadAnnotationClass.getValue(ctx) : null,
violationHandlerClass.isSet() ? violationHandlerClass.getValue(ctx) : null);
}