.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 system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nJdk8WithJettyBootPlatform.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Jdk8WithJettyBootPlatform.kt\nokhttp3/internal/platform/Jdk8WithJettyBootPlatform$Companion\n*L\n1#1,154:1\n*E\n" .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, 0x1, 0x10 } .end annotation # direct methods .method private constructor ()V .registers 1 .line 123 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public synthetic constructor (Lkotlin/jvm/internal/DefaultConstructorMarker;)V .registers 2 .line 123 invoke-direct {p0}, Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform$Companion;->()V return-void .end method # virtual methods .method public final buildIfSupported()Lokhttp3/internal/platform/Platform; .registers 12 .line 125 const-string v0, "java.specification.version" const-string v1, "unknown" 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 .line 128 :try_start_9 const-string v2, "jvmVersion" invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I move-result v0 :try_end_12 .catch Ljava/lang/NumberFormatException; {:try_start_9 .. :try_end_12} :catch_17 const/16 v2, 0x9 if-lt v0, v2, :cond_17 return-object v1 .line 136 :catch_17 :cond_17 :try_start_17 const-string v0, "org.eclipse.jetty.alpn.ALPN" const/4 v2, 0x1 .line 137 invoke-static {v0, v2, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; move-result-object v0 .line 138 const-string v3, "org.eclipse.jetty.alpn.ALPN$Provider" invoke-static {v3, v2, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; move-result-object v3 .line 139 const-string v4, "org.eclipse.jetty.alpn.ALPN$ClientProvider" invoke-static {v4, v2, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; move-result-object v9 .line 140 const-string v4, "org.eclipse.jetty.alpn.ALPN$ServerProvider" invoke-static {v4, v2, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; move-result-object v10 .line 141 const-string v4, "put" const/4 v5, 0x2 new-array v5, v5, [Ljava/lang/Class; 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 .line 142 const-string v3, "get" new-array v4, v2, [Ljava/lang/Class; 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 .line 143 const-string v4, "remove" new-array v2, v2, [Ljava/lang/Class; 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 144 new-instance v0, Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform; .line 145 const-string v2, "putMethod" invoke-static {v6, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "getMethod" invoke-static {v3, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "removeMethod" invoke-static {v8, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "clientProviderClass" invoke-static {v9, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v2, "serverProviderClass" invoke-static {v10, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V move-object v5, v0 move-object v7, v3 .line 144 invoke-direct/range {v5 .. v10}, Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform;->(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/lang/Class;)V check-cast v0, Lokhttp3/internal/platform/Platform; :try_end_7a .catch Ljava/lang/ClassNotFoundException; {:try_start_17 .. :try_end_7a} :catch_7b .catch Ljava/lang/NoSuchMethodException; {:try_start_17 .. :try_end_7a} :catch_7b return-object v0 :catch_7b return-object v1 .end method