829 lines
19 KiB
Smali
829 lines
19 KiB
Smali
.class public final Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
.super Ljava/lang/Object;
|
|
.source "PublicSuffixDatabase.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final e:[B
|
|
|
|
.field public static final f:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final g:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
.field public static final h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field public final b:Ljava/util/concurrent/CountDownLatch;
|
|
|
|
.field public c:[B
|
|
|
|
.field public d:[B
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [B
|
|
|
|
const/16 v1, 0x2a
|
|
|
|
int-to-byte v1, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->e:[B
|
|
|
|
const-string v0, "*"
|
|
|
|
invoke-static {v0}, Lf/h/a/f/f/n/f;->listOf(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->f:Ljava/util/List;
|
|
|
|
new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
invoke-direct {v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;-><init>()V
|
|
|
|
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->g:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
new-instance v0, Ljava/util/concurrent/CountDownLatch;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Ljava/util/concurrent/CountDownLatch;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 13
|
|
|
|
const-string v0, "domain"
|
|
|
|
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p1}, Ljava/net/IDN;->toUnicode(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "unicodeDomain"
|
|
|
|
invoke-static {v0, v1}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c(Ljava/lang/String;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v1, v3, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b()V
|
|
:try_end_0
|
|
.catch Ljava/io/InterruptedIOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
:try_start_1
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Thread;->interrupt()V
|
|
:try_end_1
|
|
.catch Ljava/io/InterruptedIOException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v4
|
|
|
|
:try_start_2
|
|
sget-object v5, Ld0/h0/k/h;->c:Ld0/h0/k/h$a;
|
|
|
|
sget-object v5, Ld0/h0/k/h;->a:Ld0/h0/k/h;
|
|
|
|
const-string v6, "Failed to read public suffix list"
|
|
|
|
const/4 v7, 0x5
|
|
|
|
invoke-virtual {v5, v6, v7, v4}, Ld0/h0/k/h;->i(Ljava/lang/String;ILjava/lang/Throwable;)V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_1
|
|
:try_start_3
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
:cond_0
|
|
throw p1
|
|
|
|
:cond_1
|
|
:try_start_4
|
|
iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Ljava/util/concurrent/CountDownLatch;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->await()V
|
|
:try_end_4
|
|
.catch Ljava/lang/InterruptedException; {:try_start_4 .. :try_end_4} :catch_2
|
|
|
|
goto :goto_2
|
|
|
|
:catch_2
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
:cond_2
|
|
:goto_2
|
|
iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/4 v1, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v1, :cond_16
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
new-array v4, v1, [[B
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:goto_4
|
|
if-ge v5, v1, :cond_5
|
|
|
|
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Ljava/lang/String;
|
|
|
|
sget-object v7, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
const-string v8, "UTF_8"
|
|
|
|
invoke-static {v7, v8}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
invoke-virtual {v6, v7}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "(this as java.lang.String).getBytes(charset)"
|
|
|
|
invoke-static {v6, v7}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
aput-object v6, v4, v5
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
new-instance p1, Lkotlin/TypeCastException;
|
|
|
|
const-string v0, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_5
|
|
const/4 v5, 0x0
|
|
|
|
:goto_5
|
|
const-string v6, "publicSuffixListBytes"
|
|
|
|
const/4 v7, 0x0
|
|
|
|
if-ge v5, v1, :cond_8
|
|
|
|
sget-object v8, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
|
|
|
iget-object v9, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B
|
|
|
|
if-eqz v9, :cond_7
|
|
|
|
invoke-static {v8, v9, v4, v5}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
if-eqz v8, :cond_6
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_7
|
|
invoke-static {v6}, Lz/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v7
|
|
|
|
:cond_8
|
|
move-object v8, v7
|
|
|
|
:goto_6
|
|
if-le v1, v2, :cond_b
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Object;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, [[B
|
|
|
|
array-length v9, v5
|
|
|
|
sub-int/2addr v9, v2
|
|
|
|
const/4 v10, 0x0
|
|
|
|
:goto_7
|
|
if-ge v10, v9, :cond_b
|
|
|
|
sget-object v11, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->e:[B
|
|
|
|
aput-object v11, v5, v10
|
|
|
|
sget-object v11, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
|
|
|
iget-object v12, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B
|
|
|
|
if-eqz v12, :cond_a
|
|
|
|
invoke-static {v11, v12, v5, v10}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
if-eqz v11, :cond_9
|
|
|
|
goto :goto_8
|
|
|
|
:cond_9
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_a
|
|
invoke-static {v6}, Lz/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v7
|
|
|
|
:cond_b
|
|
move-object v11, v7
|
|
|
|
:goto_8
|
|
if-eqz v11, :cond_e
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:goto_9
|
|
if-ge v5, v1, :cond_e
|
|
|
|
sget-object v6, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
|
|
|
iget-object v9, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->d:[B
|
|
|
|
if-eqz v9, :cond_d
|
|
|
|
invoke-static {v6, v9, v4, v5}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_c
|
|
|
|
goto :goto_a
|
|
|
|
:cond_c
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_9
|
|
|
|
:cond_d
|
|
const-string p1, "publicSuffixExceptionListBytes"
|
|
|
|
invoke-static {p1}, Lz/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v7
|
|
|
|
:cond_e
|
|
move-object v6, v7
|
|
|
|
:goto_a
|
|
const/4 v1, 0x6
|
|
|
|
const/16 v4, 0x2e
|
|
|
|
const/16 v5, 0x21
|
|
|
|
if-eqz v6, :cond_f
|
|
|
|
new-instance v8, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
new-array v8, v2, [C
|
|
|
|
aput-char v4, v8, v3
|
|
|
|
invoke-static {v6, v8, v3, v3, v1}, Lz/t/p;->split$default(Ljava/lang/CharSequence;[CZII)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_d
|
|
|
|
:cond_f
|
|
if-nez v8, :cond_10
|
|
|
|
if-nez v11, :cond_10
|
|
|
|
sget-object v1, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->f:Ljava/util/List;
|
|
|
|
goto :goto_d
|
|
|
|
:cond_10
|
|
if-eqz v8, :cond_11
|
|
|
|
new-array v6, v2, [C
|
|
|
|
aput-char v4, v6, v3
|
|
|
|
invoke-static {v8, v6, v3, v3, v1}, Lz/t/p;->split$default(Ljava/lang/CharSequence;[CZII)Ljava/util/List;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_b
|
|
|
|
:cond_11
|
|
sget-object v6, Lz/i/l;->d:Lz/i/l;
|
|
|
|
:goto_b
|
|
if-eqz v11, :cond_12
|
|
|
|
new-array v8, v2, [C
|
|
|
|
aput-char v4, v8, v3
|
|
|
|
invoke-static {v11, v8, v3, v3, v1}, Lz/t/p;->split$default(Ljava/lang/CharSequence;[CZII)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_c
|
|
|
|
:cond_12
|
|
sget-object v1, Lz/i/l;->d:Lz/i/l;
|
|
|
|
:goto_c
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v8
|
|
|
|
if-le v4, v8, :cond_13
|
|
|
|
move-object v1, v6
|
|
|
|
:cond_13
|
|
:goto_d
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v6
|
|
|
|
if-ne v4, v6, :cond_14
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v4
|
|
|
|
if-eq v4, v5, :cond_14
|
|
|
|
return-object v7
|
|
|
|
:cond_14
|
|
invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
if-ne v3, v5, :cond_15
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
goto :goto_e
|
|
|
|
:cond_15
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
:goto_e
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p0, p1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c(Ljava/lang/String;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lz/i/f;->asSequence(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v0}, Lz/i/s;->drop(Lkotlin/sequences/Sequence;I)Lkotlin/sequences/Sequence;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/16 v8, 0x3e
|
|
|
|
const-string v2, "."
|
|
|
|
invoke-static/range {v1 .. v8}, Lz/i/s;->joinToString$default(Lkotlin/sequences/Sequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_16
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Unable to load publicsuffixes.gz resource from the classpath."
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final b()V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-class v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
const-string v1, "publicsuffixes.gz"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Class;->getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-instance v1, Le0/l;
|
|
|
|
const-string v2, "$this$source"
|
|
|
|
invoke-static {v0, v2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v2, Le0/n;
|
|
|
|
new-instance v3, Le0/y;
|
|
|
|
invoke-direct {v3}, Le0/y;-><init>()V
|
|
|
|
invoke-direct {v2, v0, v3}, Le0/n;-><init>(Ljava/io/InputStream;Le0/y;)V
|
|
|
|
invoke-direct {v1, v2}, Le0/l;-><init>(Le0/x;)V
|
|
|
|
const-string v0, "$this$buffer"
|
|
|
|
invoke-static {v1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Le0/r;
|
|
|
|
invoke-direct {v0, v1}, Le0/r;-><init>(Le0/x;)V
|
|
|
|
:try_start_0
|
|
invoke-interface {v0}, Le0/g;->readInt()I
|
|
|
|
move-result v1
|
|
|
|
int-to-long v1, v1
|
|
|
|
invoke-interface {v0, v1, v2}, Le0/g;->o0(J)[B
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0}, Le0/g;->readInt()I
|
|
|
|
move-result v2
|
|
|
|
int-to-long v2, v2
|
|
|
|
invoke-interface {v0, v2, v3}, Le0/g;->o0(J)[B
|
|
|
|
move-result-object v2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v0, v3}, Lz/i/s;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
monitor-enter p0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
:try_start_1
|
|
iput-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iput-object v2, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->d:[B
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Ljava/util/concurrent/CountDownLatch;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
:try_start_2
|
|
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v3
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:try_start_3
|
|
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
throw v3
|
|
|
|
:goto_0
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
:try_start_4
|
|
throw v1
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
|
|
|
:catchall_2
|
|
move-exception v2
|
|
|
|
invoke-static {v0, v1}, Lz/i/s;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
throw v2
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c(Ljava/lang/String;)Ljava/util/List;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v1, v0, [C
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/16 v3, 0x2e
|
|
|
|
aput-char v3, v1, v2
|
|
|
|
const/4 v3, 0x6
|
|
|
|
invoke-static {p1, v1, v2, v2, v3}, Lz/t/p;->split$default(Ljava/lang/CharSequence;[CZII)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lz/i/f;->last(Ljava/util/List;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
const-string v3, ""
|
|
|
|
invoke-static {v1, v3}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v1, "$this$dropLast"
|
|
|
|
invoke-static {p1, v1}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
if-gez v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
invoke-static {p1, v2}, Lz/i/f;->take(Ljava/lang/Iterable;I)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_1
|
|
return-object p1
|
|
.end method
|