IntegerFormatter.smali
.class public Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
.super Ljava/lang/Object;
.source "IntegerFormatter.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/stetho/inspector/helper/IntegerFormatter$IntegerFormatterWithHex;
}
.end annotation
# static fields
.field public static cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/facebook/stetho/inspector/helper/IntegerFormatter$1;)V
.registers 2
invoke-direct {p0}, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;-><init>()V
return-void
.end method
.method public static getInstance()Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
.registers 3
sget-object v0, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;->cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
if-nez v0, :cond_26
const-class v0, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
monitor-enter v0
:try_start_7
sget-object v1, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;->cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
if-nez v1, :cond_21
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x15
if-lt v1, v2, :cond_1a
new-instance v1, Lcom/facebook/stetho/inspector/helper/IntegerFormatter$IntegerFormatterWithHex;
const/4 v2, 0x0
invoke-direct {v1, v2}, Lcom/facebook/stetho/inspector/helper/IntegerFormatter$IntegerFormatterWithHex;-><init>(Lcom/facebook/stetho/inspector/helper/IntegerFormatter$1;)V
sput-object v1, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;->cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
goto :goto_21
:cond_1a
new-instance v1, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
invoke-direct {v1}, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;-><init>()V
sput-object v1, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;->cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
:cond_21
:goto_21
monitor-exit v0
goto :goto_26
:catchall_23
move-exception v1
monitor-exit v0
:try_end_25
.catchall {:try_start_7 .. :try_end_25} :catchall_23
throw v1
:cond_26
:goto_26
sget-object v0, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;->cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
return-object v0
.end method
# virtual methods
.method public format(Ljava/lang/Integer;Landroid/view/ViewDebug$ExportedProperty;)Ljava/lang/String;
.registers 3
.param p1 # Ljava/lang/Integer;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method