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.3 KiB
107 lines
2.3 KiB
.class abstract Lcom/google/common/cache/CacheBuilderSpec$LongParser; |
|
.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 = "LongParser" |
|
.end annotation |
|
|
|
|
|
# direct methods |
|
.method constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 303 |
|
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 308 |
|
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 310 |
|
:try_start_0 |
|
invoke-static {p3}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J |
|
|
|
move-result-wide v4 |
|
|
|
invoke-virtual {p0, p1, v4, v5}, Lcom/google/common/cache/CacheBuilderSpec$LongParser;->parseLong(Lcom/google/common/cache/CacheBuilderSpec;J)V |
|
:try_end_0 |
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 315 |
|
return-void |
|
|
|
:cond_0 |
|
move v0, v2 |
|
|
|
.line 308 |
|
goto :goto_0 |
|
|
|
.line 311 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 312 |
|
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 parseLong(Lcom/google/common/cache/CacheBuilderSpec;J)V |
|
.end method
|
|
|