2026-07-06 19:54:44 +08:00

181 lines
4.1 KiB
Smali

.class public Lcom/google/firebase/components/Lazy;
.super Ljava/lang/Object;
.source "Lazy.java"
# interfaces
.implements Lcom/google/firebase/inject/Provider;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
# static fields
.field private static final UNINITIALIZED:Ljava/lang/Object;
# instance fields
.field private volatile instance:Ljava/lang/Object;
.field private volatile provider:Lcom/google/firebase/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/inject/Provider<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 31
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
return-void
.end method
.method public constructor <init>(Lcom/google/firebase/inject/Provider;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/firebase/inject/Provider<",
"TT;>;)V"
}
.end annotation
.line 41
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 33
sget-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
.line 42
iput-object p1, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
return-void
.end method
.method constructor <init>(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 37
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 33
sget-object v0, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
.line 38
iput-object p1, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public get()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.line 48
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
.line 49
sget-object v1, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
if-ne v0, v1, :cond_1
.line 50
monitor-enter p0
.line 51
:try_start_0
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
if-ne v0, v1, :cond_0
.line 53
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;
move-result-object v0
.line 54
iput-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
const/4 v1, 0x0
.line 57
iput-object v1, p0, Lcom/google/firebase/components/Lazy;->provider:Lcom/google/firebase/inject/Provider;
.line 59
:cond_0
monitor-exit p0
goto :goto_0
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
:cond_1
:goto_0
return-object v0
.end method
.method isInitialized()Z
.locals 2
.line 69
iget-object v0, p0, Lcom/google/firebase/components/Lazy;->instance:Ljava/lang/Object;
sget-object v1, Lcom/google/firebase/components/Lazy;->UNINITIALIZED:Ljava/lang/Object;
if-eq v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method