tmap/smali_classes6/org/jdesktop/application/ResourceConverter$ByteResourceConverter.smali
2022-06-10 21:38:30 +09:00

68 lines
1.5 KiB
Smali

.class Lorg/jdesktop/application/ResourceConverter$ByteResourceConverter;
.super Lorg/jdesktop/application/ResourceConverter$INumberResourceConverter;
.source "ResourceConverter.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/jdesktop/application/ResourceConverter;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "ByteResourceConverter"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 2
.line 1
const-class v0, Ljava/lang/Byte;
sget-object v1, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
invoke-direct {p0, v0, v1}, Lorg/jdesktop/application/ResourceConverter$INumberResourceConverter;-><init>(Ljava/lang/Class;Ljava/lang/Class;)V
return-void
.end method
# virtual methods
.method public parseString(Ljava/lang/String;I)Ljava/lang/Number;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/NumberFormatException;
}
.end annotation
const/4 v0, -0x1
if-ne p2, v0, :cond_0
.line 1
invoke-static {p1}, Ljava/lang/Byte;->decode(Ljava/lang/String;)Ljava/lang/Byte;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Byte;->byteValue()B
move-result p1
goto :goto_0
:cond_0
invoke-static {p1, p2}, Ljava/lang/Byte;->parseByte(Ljava/lang/String;I)B
move-result p1
:goto_0
invoke-static {p1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object p1
return-object p1
.end method