mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
640 lines
17 KiB
Smali
640 lines
17 KiB
Smali
|
.class public final Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "DiskLruCache.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lokhttp3/internal/cache/DiskLruCache;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x11
|
||
|
name = "Editor"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
bv = {
|
||
|
0x1,
|
||
|
0x0,
|
||
|
0x3
|
||
|
}
|
||
|
d1 = {
|
||
|
"\u0000@\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0003\n\u0002\u0010\u0018\n\u0002\u0008\u0003\n\u0002\u0010\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0000\u0008\u0086\u0004\u0018\u00002\u00020\u0001B\u0013\u0008\u0000\u0012\n\u0010\u0002\u001a\u00060\u0003R\u00020\u0004\u00a2\u0006\u0002\u0010\u0005J\u0006\u0010\u000e\u001a\u00020\u000fJ\u0006\u0010\u0010\u001a\u00020\u000fJ\r\u0010\u0011\u001a\u00020\u000fH\u0000\u00a2\u0006\u0002\u0008\u0012J\u000e\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0016J\u0010\u0010\u0017\u001a\u0004\u0018\u00010\u00182\u0006\u0010\u0015\u001a\u00020\u0016R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0018\u0010\u0002\u001a\u00060\u0003R\u00020\u0004X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0008\u0010\tR\u0016\u0010\n\u001a\u0004\u0018\u00010\u000bX\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000c\u0010\r\u00a8\u0006\u0019"
|
||
|
}
|
||
|
d2 = {
|
||
|
"Lokhttp3/internal/cache/DiskLruCache$Editor;",
|
||
|
"",
|
||
|
"entry",
|
||
|
"Lokhttp3/internal/cache/DiskLruCache$Entry;",
|
||
|
"Lokhttp3/internal/cache/DiskLruCache;",
|
||
|
"(Lokhttp3/internal/cache/DiskLruCache;Lokhttp3/internal/cache/DiskLruCache$Entry;)V",
|
||
|
"done",
|
||
|
"",
|
||
|
"getEntry$okhttp",
|
||
|
"()Lokhttp3/internal/cache/DiskLruCache$Entry;",
|
||
|
"written",
|
||
|
"",
|
||
|
"getWritten$okhttp",
|
||
|
"()[Z",
|
||
|
"abort",
|
||
|
"",
|
||
|
"commit",
|
||
|
"detach",
|
||
|
"detach$okhttp",
|
||
|
"newSink",
|
||
|
"Lokio/Sink;",
|
||
|
"index",
|
||
|
"",
|
||
|
"newSource",
|
||
|
"Lokio/Source;",
|
||
|
"okhttp"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x4,
|
||
|
0x0
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private done:Z
|
||
|
|
||
|
.field private final entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.field final synthetic this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.field private final written:[Z
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lokhttp3/internal/cache/DiskLruCache;Lokhttp3/internal/cache/DiskLruCache$Entry;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lokhttp3/internal/cache/DiskLruCache$Entry;",
|
||
|
")V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "entry"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 825
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p2, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.line 826
|
||
|
invoke-virtual {p2}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getReadable$okhttp()Z
|
||
|
|
||
|
move-result p2
|
||
|
|
||
|
if-eqz p2, :cond_0
|
||
|
|
||
|
const/4 p1, 0x0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p1}, Lokhttp3/internal/cache/DiskLruCache;->getValueCount$okhttp()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
new-array p1, p1, [Z
|
||
|
|
||
|
:goto_0
|
||
|
iput-object p1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->written:[Z
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final abort()V
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 913
|
||
|
monitor-enter v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-boolean v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->done:Z
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
xor-int/2addr v1, v2
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.line 915
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getCurrentEditor$okhttp()Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move-object v3, p0
|
||
|
|
||
|
check-cast v3, Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
invoke-static {v1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
.line 916
|
||
|
invoke-virtual {v1, p0, v3}, Lokhttp3/internal/cache/DiskLruCache;->completeEdit$okhttp(Lokhttp3/internal/cache/DiskLruCache$Editor;Z)V
|
||
|
|
||
|
:cond_0
|
||
|
iput-boolean v2, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->done:Z
|
||
|
|
||
|
.line 919
|
||
|
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 913
|
||
|
monitor-exit v0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
:try_start_1
|
||
|
const-string p0, "Check failed."
|
||
|
|
||
|
.line 914
|
||
|
new-instance v1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v1
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 913
|
||
|
monitor-exit v0
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public final commit()V
|
||
|
.locals 4
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 898
|
||
|
monitor-enter v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-boolean v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->done:Z
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
xor-int/2addr v1, v2
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.line 900
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getCurrentEditor$okhttp()Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move-object v3, p0
|
||
|
|
||
|
check-cast v3, Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
invoke-static {v1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 901
|
||
|
invoke-virtual {v1, p0, v2}, Lokhttp3/internal/cache/DiskLruCache;->completeEdit$okhttp(Lokhttp3/internal/cache/DiskLruCache$Editor;Z)V
|
||
|
|
||
|
:cond_0
|
||
|
iput-boolean v2, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->done:Z
|
||
|
|
||
|
.line 904
|
||
|
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
.line 898
|
||
|
monitor-exit v0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
:try_start_1
|
||
|
const-string p0, "Check failed."
|
||
|
|
||
|
.line 899
|
||
|
new-instance v1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {v1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw v1
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 898
|
||
|
monitor-exit v0
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public final detach$okhttp()V
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.line 836
|
||
|
invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getCurrentEditor$okhttp()Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
move-object v1, p0
|
||
|
|
||
|
check-cast v1, Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
invoke-static {v0, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 837
|
||
|
invoke-static {v0}, Lokhttp3/internal/cache/DiskLruCache;->access$getCivilizedFileSystem$p(Lokhttp3/internal/cache/DiskLruCache;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
.line 838
|
||
|
invoke-virtual {v0, p0, v1}, Lokhttp3/internal/cache/DiskLruCache;->completeEdit$okhttp(Lokhttp3/internal/cache/DiskLruCache$Editor;Z)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
.line 840
|
||
|
invoke-virtual {p0, v0}, Lokhttp3/internal/cache/DiskLruCache$Entry;->setZombie$okhttp(Z)V
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final getEntry$okhttp()Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final getWritten$okhttp()[Z
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->written:[Z
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final newSink(I)Lokio/Sink;
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 869
|
||
|
monitor-enter v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-boolean v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->done:Z
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
xor-int/2addr v1, v2
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.line 871
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getCurrentEditor$okhttp()Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move-object v3, p0
|
||
|
|
||
|
check-cast v3, Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
invoke-static {v1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
xor-int/2addr v1, v2
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
.line 872
|
||
|
invoke-static {}, Lokio/Okio;->blackhole()Lokio/Sink;
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
monitor-exit v0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_0
|
||
|
:try_start_1
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.line 874
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getReadable$okhttp()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->written:[Z
|
||
|
|
||
|
.line 875
|
||
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
aput-boolean v2, v1, p1
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.line 877
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getDirtyFiles$okhttp()Ljava/util/List;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, Ljava/io/File;
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:try_start_2
|
||
|
iget-object v2, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 880
|
||
|
invoke-virtual {v2}, Lokhttp3/internal/cache/DiskLruCache;->getFileSystem$okhttp()Lokhttp3/internal/io/FileSystem;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {v2, v1}, Lokhttp3/internal/io/FileSystem;->sink(Ljava/io/File;)Lokio/Sink;
|
||
|
|
||
|
move-result-object v1
|
||
|
:try_end_2
|
||
|
.catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_2} :catch_0
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
.line 884
|
||
|
:try_start_3
|
||
|
new-instance v2, Lokhttp3/internal/cache/FaultHidingSink;
|
||
|
|
||
|
new-instance v3, Lokhttp3/internal/cache/DiskLruCache$Editor$newSink$$inlined$synchronized$lambda$1;
|
||
|
|
||
|
invoke-direct {v3, p0, p1}, Lokhttp3/internal/cache/DiskLruCache$Editor$newSink$$inlined$synchronized$lambda$1;-><init>(Lokhttp3/internal/cache/DiskLruCache$Editor;I)V
|
||
|
|
||
|
check-cast v3, Lkotlin/jvm/functions/Function1;
|
||
|
|
||
|
invoke-direct {v2, v1, v3}, Lokhttp3/internal/cache/FaultHidingSink;-><init>(Lokio/Sink;Lkotlin/jvm/functions/Function1;)V
|
||
|
|
||
|
check-cast v2, Lokio/Sink;
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||
|
|
||
|
monitor-exit v0
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
.line 882
|
||
|
:catch_0
|
||
|
:try_start_4
|
||
|
invoke-static {}, Lokio/Okio;->blackhole()Lokio/Sink;
|
||
|
|
||
|
move-result-object p0
|
||
|
:try_end_4
|
||
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
||
|
|
||
|
monitor-exit v0
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_2
|
||
|
:try_start_5
|
||
|
const-string p0, "Check failed."
|
||
|
|
||
|
.line 870
|
||
|
new-instance p1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p1
|
||
|
:try_end_5
|
||
|
.catchall {:try_start_5 .. :try_end_5} :catchall_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 869
|
||
|
monitor-exit v0
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public final newSource(I)Lokio/Source;
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 850
|
||
|
monitor-enter v0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-boolean v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->done:Z
|
||
|
|
||
|
xor-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
.line 852
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getReadable$okhttp()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getCurrentEditor$okhttp()Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move-object v3, p0
|
||
|
|
||
|
check-cast v3, Lokhttp3/internal/cache/DiskLruCache$Editor;
|
||
|
|
||
|
invoke-static {v1, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
xor-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getZombie$okhttp()Z
|
||
|
|
||
|
move-result v1
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
:try_start_1
|
||
|
iget-object v1, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->this$0:Lokhttp3/internal/cache/DiskLruCache;
|
||
|
|
||
|
.line 856
|
||
|
invoke-virtual {v1}, Lokhttp3/internal/cache/DiskLruCache;->getFileSystem$okhttp()Lokhttp3/internal/io/FileSystem;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/cache/DiskLruCache$Editor;->entry:Lokhttp3/internal/cache/DiskLruCache$Entry;
|
||
|
|
||
|
invoke-virtual {p0}, Lokhttp3/internal/cache/DiskLruCache$Entry;->getCleanFiles$okhttp()Ljava/util/List;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-interface {p0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Ljava/io/File;
|
||
|
|
||
|
invoke-interface {v1, p0}, Lokhttp3/internal/io/FileSystem;->source(Ljava/io/File;)Lokio/Source;
|
||
|
|
||
|
move-result-object v2
|
||
|
:try_end_1
|
||
|
.catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
.line 855
|
||
|
:catch_0
|
||
|
monitor-exit v0
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
.line 853
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
monitor-exit v0
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
:cond_2
|
||
|
:try_start_2
|
||
|
const-string p0, "Check failed."
|
||
|
|
||
|
.line 851
|
||
|
new-instance p1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p1, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p1
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p0
|
||
|
|
||
|
.line 850
|
||
|
monitor-exit v0
|
||
|
|
||
|
throw p0
|
||
|
.end method
|