.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 ()V .locals 0 .line 308 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public parse(Lcom/google/common/cache/CacheBuilderSpec;Ljava/lang/String;Ljava/lang/String;)V .locals 2 .line 313 invoke-static {p3}, Lcom/google/common/base/Strings;->isNullOrEmpty(Ljava/lang/String;)Z move-result v0 if-nez v0, :cond_0 .line 317 :try_start_0 invoke-static {p3}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J move-result-wide v0 invoke-virtual {p0, p1, v0, v1}, 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 return-void :catch_0 move-exception p0 .line 319 new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "key %s value set to %s, must be integer" filled-new-array {p2, p3}, [Ljava/lang/Object; move-result-object p2 .line 320 invoke-static {v0, p2}, Lcom/google/common/cache/CacheBuilderSpec;->access$000(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw p1 .line 314 :cond_0 new-instance p0, Ljava/lang/IllegalArgumentException; invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result p1 add-int/lit8 p1, p1, 0x15 new-instance p3, Ljava/lang/StringBuilder; invoke-direct {p3, p1}, Ljava/lang/StringBuilder;->(I)V const-string p1, "value of key " invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 const-string p2, " omitted" invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method .method protected abstract parseLong(Lcom/google/common/cache/CacheBuilderSpec;J)V .end method