HttpDate$1.smali 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .class final Lokhttp3/internal/http/HttpDate$1;
  2. .super Ljava/lang/ThreadLocal;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingClass;
  6. value = Lokhttp3/internal/http/HttpDate;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x0
  10. name = null
  11. .end annotation
  12. .annotation system Ldalvik/annotation/Signature;
  13. value = {
  14. "Ljava/lang/ThreadLocal<",
  15. "Ljava/text/DateFormat;",
  16. ">;"
  17. }
  18. .end annotation
  19. # direct methods
  20. .method constructor <init>()V
  21. .locals 0
  22. invoke-direct {p0}, Ljava/lang/ThreadLocal;-><init>()V
  23. return-void
  24. .end method
  25. # virtual methods
  26. .method protected bridge synthetic initialValue()Ljava/lang/Object;
  27. .locals 1
  28. invoke-virtual {p0}, Lokhttp3/internal/http/HttpDate$1;->initialValue()Ljava/text/DateFormat;
  29. move-result-object v0
  30. return-object v0
  31. .end method
  32. .method protected initialValue()Ljava/text/DateFormat;
  33. .locals 3
  34. new-instance v0, Ljava/text/SimpleDateFormat;
  35. sget-object v1, Ljava/util/Locale;->US:Ljava/util/Locale;
  36. const-string v2, "EEE, dd MMM yyyy HH:mm:ss \'GMT\'"
  37. invoke-direct {v0, v2, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V
  38. const/4 v1, 0x0
  39. invoke-virtual {v0, v1}, Ljava/text/DateFormat;->setLenient(Z)V
  40. sget-object v1, Lokhttp3/internal/Util;->UTC:Ljava/util/TimeZone;
  41. invoke-virtual {v0, v1}, Ljava/text/DateFormat;->setTimeZone(Ljava/util/TimeZone;)V
  42. return-object v0
  43. .end method