IntegerFormatter.smali
.class public Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/facebook/stetho/inspector/helper/IntegerFormatter$IntegerFormatterWithHex;
}
.end annotation
# static fields
.field private static cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
# direct methods
.method private constructor <init>()V
.registers 1
.line 2
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
.line 1
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
.line 1
sget-object v0, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;->cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
if-nez v0, :cond_18
.line 2
const-class v0, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
monitor-enter v0
.line 3
:try_start_7
sget-object v1, Lcom/facebook/stetho/inspector/helper/IntegerFormatter;->cachedFormatter:Lcom/facebook/stetho/inspector/helper/IntegerFormatter;
if-nez v1, :cond_13
.line 4
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;
.line 5
:cond_13
monitor-exit v0
goto :goto_18
:catchall_15
move-exception v1
monitor-exit v0
:try_end_17
.catchall {:try_start_7 .. :try_end_17} :catchall_15
throw v1
.line 6
:cond_18
:goto_18
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
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
return-object p1
.end method