tmap/smali_classes5/okhttp3/internal/platform/Jdk8WithJettyBootPlatform$Companion.smali
2022-06-10 21:38:30 +09:00

214 lines
5.5 KiB
Smali

.class public final Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform$Companion;
.super Ljava/lang/Object;
.source "Jdk8WithJettyBootPlatform.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0008\u0010\u0003\u001a\u0004\u0018\u00010\u0004\u00a8\u0006\u0005"
}
d2 = {
"Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform$Companion;",
"",
"()V",
"buildIfSupported",
"Lokhttp3/internal/platform/Platform;",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/u;)V
.locals 0
.line 2
invoke-direct {p0}, Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final buildIfSupported()Lokhttp3/internal/platform/Platform;
.locals 11
.annotation build Lorg/jetbrains/annotations/Nullable;
.end annotation
const-string v0, "java.specification.version"
const-string v1, "unknown"
.line 1
invoke-static {v0, v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
:try_start_0
const-string v2, "jvmVersion"
.line 2
invoke-static {v0, v2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
const/16 v2, 0x9
if-lt v0, v2, :cond_0
return-object v1
:catch_0
:cond_0
const-string v0, "org.eclipse.jetty.alpn.ALPN"
const/4 v2, 0x1
.line 3
:try_start_1
invoke-static {v0, v2, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
move-result-object v0
const-string v3, "org.eclipse.jetty.alpn.ALPN$Provider"
.line 4
invoke-static {v3, v2, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
move-result-object v3
const-string v4, "org.eclipse.jetty.alpn.ALPN$ClientProvider"
.line 5
invoke-static {v4, v2, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
move-result-object v9
const-string v4, "org.eclipse.jetty.alpn.ALPN$ServerProvider"
.line 6
invoke-static {v4, v2, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
move-result-object v10
const-string v4, "put"
const/4 v5, 0x2
new-array v5, v5, [Ljava/lang/Class;
.line 7
const-class v6, Ljavax/net/ssl/SSLSocket;
const/4 v7, 0x0
aput-object v6, v5, v7
aput-object v3, v5, v2
invoke-virtual {v0, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v6
const-string v3, "get"
new-array v4, v2, [Ljava/lang/Class;
.line 8
const-class v5, Ljavax/net/ssl/SSLSocket;
aput-object v5, v4, v7
invoke-virtual {v0, v3, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v3
const-string v4, "remove"
new-array v2, v2, [Ljava/lang/Class;
.line 9
const-class v5, Ljavax/net/ssl/SSLSocket;
aput-object v5, v2, v7
invoke-virtual {v0, v4, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v8
.line 10
new-instance v0, Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform;
const-string v2, "putMethod"
.line 11
invoke-static {v6, v2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
const-string v2, "getMethod"
invoke-static {v3, v2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
const-string v2, "removeMethod"
invoke-static {v8, v2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
const-string v2, "clientProviderClass"
invoke-static {v9, v2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
const-string v2, "serverProviderClass"
invoke-static {v10, v2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
move-object v5, v0
move-object v7, v3
.line 12
invoke-direct/range {v5 .. v10}, Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform;-><init>(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/lang/Class;)V
:try_end_1
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
.catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_1
return-object v0
:catch_1
return-object v1
.end method