Cache$CacheRequestImpl$1.smali 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. .class Lokhttp3/Cache$CacheRequestImpl$1;
  2. .super Lokio/ForwardingSink;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lokhttp3/Cache$CacheRequestImpl;-><init>(Lokhttp3/Cache;Lokhttp3/internal/cache/DiskLruCache$Editor;)V
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x0
  10. name = null
  11. .end annotation
  12. # instance fields
  13. .field final synthetic this$1:Lokhttp3/Cache$CacheRequestImpl;
  14. .field final synthetic val$editor:Lokhttp3/internal/cache/DiskLruCache$Editor;
  15. .field final synthetic val$this$0:Lokhttp3/Cache;
  16. # direct methods
  17. .method constructor <init>(Lokhttp3/Cache$CacheRequestImpl;Lokio/Sink;Lokhttp3/Cache;Lokhttp3/internal/cache/DiskLruCache$Editor;)V
  18. .locals 0
  19. iput-object p1, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
  20. iput-object p3, p0, Lokhttp3/Cache$CacheRequestImpl$1;->val$this$0:Lokhttp3/Cache;
  21. iput-object p4, p0, Lokhttp3/Cache$CacheRequestImpl$1;->val$editor:Lokhttp3/internal/cache/DiskLruCache$Editor;
  22. invoke-direct {p0, p2}, Lokio/ForwardingSink;-><init>(Lokio/Sink;)V
  23. return-void
  24. .end method
  25. # virtual methods
  26. .method public close()V
  27. .locals 4
  28. .annotation system Ldalvik/annotation/Throws;
  29. value = {
  30. Ljava/io/IOException;
  31. }
  32. .end annotation
  33. iget-object v0, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
  34. iget-object v0, v0, Lokhttp3/Cache$CacheRequestImpl;->this$0:Lokhttp3/Cache;
  35. monitor-enter v0
  36. :try_start_0
  37. iget-object v1, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
  38. iget-boolean v1, v1, Lokhttp3/Cache$CacheRequestImpl;->done:Z
  39. if-eqz v1, :cond_0
  40. monitor-exit v0
  41. return-void
  42. :cond_0
  43. iget-object v1, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
  44. const/4 v2, 0x1
  45. iput-boolean v2, v1, Lokhttp3/Cache$CacheRequestImpl;->done:Z
  46. iget-object v1, p0, Lokhttp3/Cache$CacheRequestImpl$1;->this$1:Lokhttp3/Cache$CacheRequestImpl;
  47. iget-object v1, v1, Lokhttp3/Cache$CacheRequestImpl;->this$0:Lokhttp3/Cache;
  48. iget v3, v1, Lokhttp3/Cache;->writeSuccessCount:I
  49. add-int/2addr v3, v2
  50. iput v3, v1, Lokhttp3/Cache;->writeSuccessCount:I
  51. monitor-exit v0
  52. :try_end_0
  53. .catchall {:try_start_0 .. :try_end_0} :catchall_0
  54. invoke-super {p0}, Lokio/ForwardingSink;->close()V
  55. iget-object v0, p0, Lokhttp3/Cache$CacheRequestImpl$1;->val$editor:Lokhttp3/internal/cache/DiskLruCache$Editor;
  56. invoke-virtual {v0}, Lokhttp3/internal/cache/DiskLruCache$Editor;->commit()V
  57. return-void
  58. :catchall_0
  59. move-exception v1
  60. :try_start_1
  61. monitor-exit v0
  62. :try_end_1
  63. .catchall {:try_start_1 .. :try_end_1} :catchall_0
  64. throw v1
  65. .end method