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.
109 lines
2.6 KiB
109 lines
2.6 KiB
2 years ago
|
.class Lcom/google/common/cache/CacheBuilderSpec$KeyStrengthParser;
|
||
|
.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 = 0x8
|
||
|
name = "KeyStrengthParser"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final strength:Lcom/google/common/cache/LocalCache$Strength;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lcom/google/common/cache/LocalCache$Strength;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 366
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
.line 367
|
||
|
iput-object p1, p0, Lcom/google/common/cache/CacheBuilderSpec$KeyStrengthParser;->strength:Lcom/google/common/cache/LocalCache$Strength;
|
||
|
|
||
|
.line 368
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public parse(Lcom/google/common/cache/CacheBuilderSpec;Ljava/lang/String;Ljava/lang/String;)V
|
||
|
.locals 5
|
||
|
.param p3 # Ljava/lang/String;
|
||
|
.annotation runtime Ljavax/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
.prologue
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
.line 372
|
||
|
if-nez p3, :cond_0
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
:goto_0
|
||
|
const-string v3, "key %s does not take values"
|
||
|
|
||
|
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 373
|
||
|
iget-object v0, p1, Lcom/google/common/cache/CacheBuilderSpec;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
move v0, v1
|
||
|
|
||
|
:goto_1
|
||
|
const-string v3, "%s was already set to %s"
|
||
|
|
||
|
const/4 v4, 0x2
|
||
|
|
||
|
new-array v4, v4, [Ljava/lang/Object;
|
||
|
|
||
|
aput-object p2, v4, v2
|
||
|
|
||
|
iget-object v2, p1, Lcom/google/common/cache/CacheBuilderSpec;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
||
|
|
||
|
aput-object v2, v4, v1
|
||
|
|
||
|
invoke-static {v0, v3, v4}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
||
|
.line 374
|
||
|
iget-object v0, p0, Lcom/google/common/cache/CacheBuilderSpec$KeyStrengthParser;->strength:Lcom/google/common/cache/LocalCache$Strength;
|
||
|
|
||
|
iput-object v0, p1, Lcom/google/common/cache/CacheBuilderSpec;->keyStrength:Lcom/google/common/cache/LocalCache$Strength;
|
||
|
|
||
|
.line 375
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
move v0, v2
|
||
|
|
||
|
.line 372
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
move v0, v2
|
||
|
|
||
|
.line 373
|
||
|
goto :goto_1
|
||
|
.end method
|