Gson$4.smali 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. .class final Lcom/google/gson/Gson$4;
  2. .super Lcom/google/gson/TypeAdapter;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lcom/google/gson/Gson;->atomicLongAdapter(Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapter;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x8
  10. name = null
  11. .end annotation
  12. .annotation system Ldalvik/annotation/Signature;
  13. value = {
  14. "Lcom/google/gson/TypeAdapter<",
  15. "Ljava/util/concurrent/atomic/AtomicLong;",
  16. ">;"
  17. }
  18. .end annotation
  19. # instance fields
  20. .field final synthetic val$longAdapter:Lcom/google/gson/TypeAdapter;
  21. # direct methods
  22. .method constructor <init>(Lcom/google/gson/TypeAdapter;)V
  23. .locals 0
  24. iput-object p1, p0, Lcom/google/gson/Gson$4;->val$longAdapter:Lcom/google/gson/TypeAdapter;
  25. invoke-direct {p0}, Lcom/google/gson/TypeAdapter;-><init>()V
  26. return-void
  27. .end method
  28. # virtual methods
  29. .method public bridge synthetic read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
  30. .locals 0
  31. .annotation system Ldalvik/annotation/Throws;
  32. value = {
  33. Ljava/io/IOException;
  34. }
  35. .end annotation
  36. invoke-virtual {p0, p1}, Lcom/google/gson/Gson$4;->read(Lcom/google/gson/stream/JsonReader;)Ljava/util/concurrent/atomic/AtomicLong;
  37. move-result-object p1
  38. return-object p1
  39. .end method
  40. .method public read(Lcom/google/gson/stream/JsonReader;)Ljava/util/concurrent/atomic/AtomicLong;
  41. .locals 3
  42. .annotation system Ldalvik/annotation/Throws;
  43. value = {
  44. Ljava/io/IOException;
  45. }
  46. .end annotation
  47. iget-object v0, p0, Lcom/google/gson/Gson$4;->val$longAdapter:Lcom/google/gson/TypeAdapter;
  48. invoke-virtual {v0, p1}, Lcom/google/gson/TypeAdapter;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
  49. move-result-object p1
  50. check-cast p1, Ljava/lang/Number;
  51. new-instance v0, Ljava/util/concurrent/atomic/AtomicLong;
  52. invoke-virtual {p1}, Ljava/lang/Number;->longValue()J
  53. move-result-wide v1
  54. invoke-direct {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V
  55. return-object v0
  56. .end method
  57. .method public bridge synthetic write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
  58. .locals 0
  59. .annotation system Ldalvik/annotation/Throws;
  60. value = {
  61. Ljava/io/IOException;
  62. }
  63. .end annotation
  64. check-cast p2, Ljava/util/concurrent/atomic/AtomicLong;
  65. invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson$4;->write(Lcom/google/gson/stream/JsonWriter;Ljava/util/concurrent/atomic/AtomicLong;)V
  66. return-void
  67. .end method
  68. .method public write(Lcom/google/gson/stream/JsonWriter;Ljava/util/concurrent/atomic/AtomicLong;)V
  69. .locals 3
  70. .annotation system Ldalvik/annotation/Throws;
  71. value = {
  72. Ljava/io/IOException;
  73. }
  74. .end annotation
  75. iget-object v0, p0, Lcom/google/gson/Gson$4;->val$longAdapter:Lcom/google/gson/TypeAdapter;
  76. invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
  77. move-result-wide v1
  78. invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
  79. move-result-object p2
  80. invoke-virtual {v0, p1, p2}, Lcom/google/gson/TypeAdapter;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
  81. return-void
  82. .end method