Cache$CacheRequestImpl$1.smali
.class Lokhttp3/Cache$CacheRequestImpl$1;
.super Lokio/ForwardingSink;
.source "Cache.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokhttp3/Cache$CacheRequestImpl;-><init>(Lokhttp3/Cache;Lokhttp3/internal/cache/DiskLruCache$Editor;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lokhttp3/Cache$CacheRequestImpl;
.field final synthetic val$editor:Lokhttp3/internal/cache/DiskLruCache$Editor;
.field final synthetic val$this$0:Lokhttp3/Cache;
# direct methods
.method constructor <init>(Lokhttp3/Cache$CacheRequestImpl;Lokio/Sink;Lokhttp3/Cache;Lokhttp3/internal/cache/DiskLruCache$Editor;)V
.registers 5
.line 439
iput-object p1, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
iput-object p3, p0, Lokhttp3/Cache$CacheRequestImpl$1;->val$this$0:Lokhttp3/Cache;
iput-object p4, p0, Lokhttp3/Cache$CacheRequestImpl$1;->val$editor:Lokhttp3/internal/cache/DiskLruCache$Editor;
invoke-direct {p0, p2}, Lokio/ForwardingSink;-><init>(Lokio/Sink;)V
return-void
.end method
# virtual methods
.method public close()V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 441
iget-object v0, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
iget-object v0, v0, Lokhttp3/Cache$CacheRequestImpl;->this$0:Lokhttp3/Cache;
monitor-enter v0
.line 442
:try_start_5
iget-object v1, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
iget-boolean v1, v1, Lokhttp3/Cache$CacheRequestImpl;->done:Z
if-eqz v1, :cond_d
.line 443
monitor-exit v0
return-void
.line 445
:cond_d
iget-object v1, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
const/4 v2, 0x1
iput-boolean v2, v1, Lokhttp3/Cache$CacheRequestImpl;->done:Z
.line 446
iget-object v1, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
iget-object v1, v1, Lokhttp3/Cache$CacheRequestImpl;->this$0:Lokhttp3/Cache;
iget v3, v1, Lokhttp3/Cache;->writeSuccessCount:I
add-int/2addr v3, v2
iput v3, v1, Lokhttp3/Cache;->writeSuccessCount:I
.line 447
monitor-exit v0
:try_end_1c
.catchall {:try_start_5 .. :try_end_1c} :catchall_25
.line 448
invoke-super {p0}, Lokio/ForwardingSink;->close()V
.line 449
iget-object v0, p0, Lokhttp3/Cache$CacheRequestImpl$1;->val$editor:Lokhttp3/internal/cache/DiskLruCache$Editor;
invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache$Editor;->commit()V
return-void
:catchall_25
move-exception v1
.line 447
:try_start_26
monitor-exit v0
:try_end_27
.catchall {:try_start_26 .. :try_end_27} :catchall_25
throw v1
.end method