.class final Lokhttp3/Cache$CacheRequestImpl; .super Ljava/lang/Object; .source "Cache.java" # interfaces .implements Lokhttp3/internal/cache/CacheRequest; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/Cache; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x12 name = "CacheRequestImpl" .end annotation # instance fields .field a:Z .field final synthetic b:Lokhttp3/Cache; .field private final c:Lokhttp3/internal/cache/DiskLruCache$Editor; .field private d:Lokio/Sink; .field private e:Lokio/Sink; # direct methods .method public constructor (Lokhttp3/Cache;Lokhttp3/internal/cache/DiskLruCache$Editor;)V .locals 2 .line 435 iput-object p1, p0, Lokhttp3/Cache$CacheRequestImpl;->b:Lokhttp3/Cache; invoke-direct {p0}, Ljava/lang/Object;->()V .line 436 iput-object p2, p0, Lokhttp3/Cache$CacheRequestImpl;->c:Lokhttp3/internal/cache/DiskLruCache$Editor; const/4 v0, 0x1 .line 437 invoke-virtual {p2, v0}, Lokhttp3/internal/cache/DiskLruCache$Editor;->a(I)Lokio/Sink; move-result-object v0 iput-object v0, p0, Lokhttp3/Cache$CacheRequestImpl;->d:Lokio/Sink; .line 438 new-instance v0, Lokhttp3/Cache$CacheRequestImpl$1; iget-object v1, p0, Lokhttp3/Cache$CacheRequestImpl;->d:Lokio/Sink; invoke-direct {v0, p0, v1, p1, p2}, Lokhttp3/Cache$CacheRequestImpl$1;->(Lokhttp3/Cache$CacheRequestImpl;Lokio/Sink;Lokhttp3/Cache;Lokhttp3/internal/cache/DiskLruCache$Editor;)V iput-object v0, p0, Lokhttp3/Cache$CacheRequestImpl;->e:Lokio/Sink; return-void .end method # virtual methods .method public a()V .locals 4 .line 454 iget-object v0, p0, Lokhttp3/Cache$CacheRequestImpl;->b:Lokhttp3/Cache; monitor-enter v0 .line 455 :try_start_0 iget-boolean v1, p0, Lokhttp3/Cache$CacheRequestImpl;->a:Z if-eqz v1, :cond_0 .line 456 monitor-exit v0 return-void :cond_0 const/4 v1, 0x1 .line 458 iput-boolean v1, p0, Lokhttp3/Cache$CacheRequestImpl;->a:Z .line 459 iget-object v2, p0, Lokhttp3/Cache$CacheRequestImpl;->b:Lokhttp3/Cache; iget v3, v2, Lokhttp3/Cache;->d:I add-int/2addr v3, v1 iput v3, v2, Lokhttp3/Cache;->d:I .line 460 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 461 iget-object v0, p0, Lokhttp3/Cache$CacheRequestImpl;->d:Lokio/Sink; invoke-static {v0}, Lokhttp3/internal/Util;->a(Ljava/io/Closeable;)V .line 463 :try_start_1 iget-object v0, p0, Lokhttp3/Cache$CacheRequestImpl;->c:Lokhttp3/internal/cache/DiskLruCache$Editor; invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache$Editor;->c()V :try_end_1 .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0 :catch_0 return-void :catchall_0 move-exception v1 .line 460 :try_start_2 monitor-exit v0 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 throw v1 .end method .method public b()Lokio/Sink; .locals 1 .line 469 iget-object v0, p0, Lokhttp3/Cache$CacheRequestImpl;->e:Lokio/Sink; return-object v0 .end method