qualifiedName) {
String threadContext = getThreadContext(methodCall);
if (threadContext != null && !isCompatibleThread(threadContext, qualifiedName)) {
String message = String.format("Method %1$s must be called from the %2$s thread, currently inferred thread is %3$s",
method.getName(), describeThread(qualifiedName), describeThread(threadContext));
holder.registerProblem(methodCall, message);
} checkThreadAnnotation private static void checkThreadAnnotation(PsiCallExpression methodCall, ProblemsHolder holder, PsiMethod method, String qualifiedName) {
String threadContext = getThreadContext(methodCall);
if (threadContext != null && !isCompatibleThread(threadContext, qualifiedName)) {
String message = String.format("Method %1$s must be called from the %2$s thread, currently inferred thread is %3$s",
method.getName(), describeThread(qualifiedName), describeThread(threadContext));
holder.registerProblem(methodCall, message);
} } https://android.googlesource.com/platform/tools/adt/idea/+/master/android/src/org/jetbrains/android/ inspections/ResourceTypeInspection.java ͳͷͰ݅จΛݟͯߦ͖·͠ΐ͏