.class public final Lio/sentry/util/Platform; .super Ljava/lang/Object; .source "Platform.java" # static fields .field static isAndroid:Z .field static isJavaNinePlus:Z # direct methods .method static constructor ()V .locals 5 const/4 v0, 0x0 :try_start_0 const-string v1, "The Android Project" const-string v2, "java.vendor" .line 18 invoke-static {v2}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 sput-boolean v1, Lio/sentry/util/Platform;->isAndroid:Z :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 sput-boolean v0, Lio/sentry/util/Platform;->isAndroid:Z :goto_0 :try_start_1 const-string v1, "java.specification.version" .line 24 invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_1 .line 26 invoke-static {v1}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double; move-result-object v1 invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D move-result-wide v1 const-wide/high16 v3, 0x4022000000000000L # 9.0 cmpl-double v1, v1, v3 if-ltz v1, :cond_0 const/4 v1, 0x1 goto :goto_1 :cond_0 move v1, v0 :goto_1 sput-boolean v1, Lio/sentry/util/Platform;->isJavaNinePlus:Z goto :goto_2 :cond_1 sput-boolean v0, Lio/sentry/util/Platform;->isJavaNinePlus:Z :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 goto :goto_2 :catchall_1 sput-boolean v0, Lio/sentry/util/Platform;->isJavaNinePlus:Z :goto_2 return-void .end method .method public constructor ()V .locals 0 .line 8 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static isAndroid()Z .locals 1 sget-boolean v0, Lio/sentry/util/Platform;->isAndroid:Z return v0 .end method .method public static isJavaNinePlus()Z .locals 1 sget-boolean v0, Lio/sentry/util/Platform;->isJavaNinePlus:Z return v0 .end method .method public static isJvm()Z .locals 1 sget-boolean v0, Lio/sentry/util/Platform;->isAndroid:Z xor-int/lit8 v0, v0, 0x1 return v0 .end method