apkfuckery/com.discord/smali/okhttp3/internal/http/HttpDate$1.smali
2019-02-04 21:05:16 +01:00

71 lines
1.6 KiB
Smali

.class final Lokhttp3/internal/http/HttpDate$1;
.super Ljava/lang/ThreadLocal;
.source "HttpDate.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/http/HttpDate;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal",
"<",
"Ljava/text/DateFormat;",
">;"
}
.end annotation
# direct methods
.method constructor <init>()V
.locals 0
.prologue
invoke-direct {p0}, Ljava/lang/ThreadLocal;-><init>()V
return-void
.end method
# virtual methods
.method protected bridge synthetic initialValue()Ljava/lang/Object;
.locals 1
.prologue
invoke-virtual {p0}, Lokhttp3/internal/http/HttpDate$1;->initialValue()Ljava/text/DateFormat;
move-result-object v0
return-object v0
.end method
.method protected initialValue()Ljava/text/DateFormat;
.locals 3
.prologue
new-instance v0, Ljava/text/SimpleDateFormat;
const-string v1, "EEE, dd MMM yyyy HH:mm:ss \'GMT\'"
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-direct {v0, v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V
.local v0, "rfc1123":Ljava/text/DateFormat;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/text/DateFormat;->setLenient(Z)V
sget-object v1, Lokhttp3/internal/Util;->UTC:Ljava/util/TimeZone;
invoke-virtual {v0, v1}, Ljava/text/DateFormat;->setTimeZone(Ljava/util/TimeZone;)V
return-object v0
.end method