package okhttp3.internal.cache;

import d.b.a.a.a;
import g.a0;
import g.h0.b.l;
import g.h0.c.m;
import g.i;
import java.io.IOException;
import okhttp3.internal.Util;

/* JADX INFO: compiled from: DiskLruCache.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class DiskLruCache$newJournalWriter$faultHidingSink$1 extends m implements l<IOException, a0> {
    public final /* synthetic */ DiskLruCache this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public DiskLruCache$newJournalWriter$faultHidingSink$1(DiskLruCache diskLruCache) {
        super(1);
        this.this$0 = diskLruCache;
    }

    @Override // g.h0.b.l
    public /* bridge */ /* synthetic */ a0 invoke(IOException iOException) {
        invoke2(iOException);
        return a0.a;
    }

    /* JADX INFO: renamed from: invoke, reason: avoid collision after fix types in other method */
    public final void invoke2(IOException iOException) {
        g.h0.c.l.f(iOException, "it");
        DiskLruCache diskLruCache = this.this$0;
        if (!Util.assertionsEnabled || Thread.holdsLock(diskLruCache)) {
            this.this$0.hasJournalErrors = true;
            return;
        }
        StringBuilder sbB = a.B("Thread ");
        Thread threadCurrentThread = Thread.currentThread();
        g.h0.c.l.e(threadCurrentThread, "Thread.currentThread()");
        sbB.append(threadCurrentThread.getName());
        sbB.append(" MUST hold lock on ");
        sbB.append(diskLruCache);
        throw new AssertionError(sbB.toString());
    }
}
