64 lines
1.4 KiB
Smali
64 lines
1.4 KiB
Smali
.class public Lokhttp3/internal/http/HttpDate$1;
|
|
.super Ljava/lang/ThreadLocal;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/http/HttpDate;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 38
|
|
invoke-direct {p0}, Ljava/lang/ThreadLocal;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic initialValue()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 38
|
|
invoke-virtual {p0}, Lokhttp3/internal/http/HttpDate$1;->initialValue()Ljava/text/DateFormat;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public initialValue()Ljava/text/DateFormat;
|
|
.locals 3
|
|
|
|
.line 41
|
|
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
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 42
|
|
invoke-virtual {v0, v1}, Ljava/text/DateFormat;->setLenient(Z)V
|
|
|
|
.line 43
|
|
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
|