今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.4 KiB

.class abstract Lcom/google/common/cache/CacheBuilderSpec$IntegerParser;
.super Ljava/lang/Object;
.source "CacheBuilderSpec.java"
# interfaces
.implements Lcom/google/common/cache/CacheBuilderSpec$ValueParser;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/cache/CacheBuilderSpec;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x408
name = "IntegerParser"
.end annotation
# direct methods
.method constructor <init>()V
.locals 0
.prologue
.line 287
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public parse(Lcom/google/common/cache/CacheBuilderSpec;Ljava/lang/String;Ljava/lang/String;)V
.locals 6
.prologue
const/4 v1, 0x1
const/4 v2, 0x0
.line 292
if-eqz p3, :cond_0
invoke-virtual {p3}, Ljava/lang/String;->length()I
move-result v0
if-eqz v0, :cond_0
move v0, v1
:goto_0
const-string v3, "value of key %s omitted"
new-array v4, v1, [Ljava/lang/Object;
aput-object p2, v4, v2
invoke-static {v0, v3, v4}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V
.line 294
:try_start_0
invoke-static {p3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
invoke-virtual {p0, p1, v0}, Lcom/google/common/cache/CacheBuilderSpec$IntegerParser;->parseInteger(Lcom/google/common/cache/CacheBuilderSpec;I)V
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
.line 299
return-void
:cond_0
move v0, v2
.line 292
goto :goto_0
.line 295
:catch_0
move-exception v0
.line 296
new-instance v3, Ljava/lang/IllegalArgumentException;
const-string v4, "key %s value set to %s, must be integer"
const/4 v5, 0x2
new-array v5, v5, [Ljava/lang/Object;
aput-object p2, v5, v2
aput-object p3, v5, v1
invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v3, v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v3
.end method
.method protected abstract parseInteger(Lcom/google/common/cache/CacheBuilderSpec;I)V
.end method