LongSerializationPolicy$2.smali 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .class final enum Lcom/google/gson/LongSerializationPolicy$2;
  2. .super Lcom/google/gson/LongSerializationPolicy;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingClass;
  6. value = Lcom/google/gson/LongSerializationPolicy;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x4008
  10. name = null
  11. .end annotation
  12. # direct methods
  13. .method constructor <init>(Ljava/lang/String;I)V
  14. .locals 1
  15. const/4 v0, 0x0
  16. invoke-direct {p0, p1, p2, v0}, Lcom/google/gson/LongSerializationPolicy;-><init>(Ljava/lang/String;ILcom/google/gson/LongSerializationPolicy$1;)V
  17. return-void
  18. .end method
  19. # virtual methods
  20. .method public serialize(Ljava/lang/Long;)Lcom/google/gson/JsonElement;
  21. .locals 1
  22. new-instance v0, Lcom/google/gson/JsonPrimitive;
  23. invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
  24. move-result-object p1
  25. invoke-direct {v0, p1}, Lcom/google/gson/JsonPrimitive;-><init>(Ljava/lang/String;)V
  26. return-object v0
  27. .end method