68 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class Lorg/jdesktop/application/ResourceConverter$IntegerResourceConverter;
 | |
| .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 = "IntegerResourceConverter"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     const-class v0, Ljava/lang/Integer;
 | |
| 
 | |
|     sget-object v1, Ljava/lang/Integer;->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/Integer;->decode(Ljava/lang/String;)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     invoke-static {p1, p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 |