granularity level: instruction
.class public final Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;
.super Ljava/lang/Object;
.source "SingleCheck.java"
.implements Ljavax/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljavax/inject/Provider<",
"TT;>;"
}
.end annotation
.field static final synthetic $assertionsDisabled:Z
.field private static final UNINITIALIZED:Ljava/lang/Object;
.field private volatile instance:Ljava/lang/Object;
.field private volatile provider:Ljavax/inject/Provider;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljavax/inject/Provider<",
"TT;>;"
}
.end annotation
.end field
.method static constructor <clinit>()V
.locals 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->UNINITIALIZED:Ljava/lang/Object;
return-void
.end method
.method private constructor <init>(Ljavax/inject/Provider;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljavax/inject/Provider<",
"TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
sget-object v0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->UNINITIALIZED:Ljava/lang/Object;
iput-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->instance:Ljava/lang/Object;
iput-object p1, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->provider:Ljavax/inject/Provider;
return-void
.end method
.method public static provider(Ljavax/inject/Provider;)Ljavax/inject/Provider;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<P::",
"Ljavax/inject/Provider<",
"TT;>;T:",
"Ljava/lang/Object;",
">(TP;)",
"Ljavax/inject/Provider<",
"TT;>;"
}
.end annotation
instance-of v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;
if-nez v0, :cond_1
instance-of v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/DoubleCheck;
if-eqz v0, :cond_0
goto :goto_0
:cond_0
new-instance v0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;
invoke-static {p0}, Lcom/google/android/datatransport/runtime/dagger/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljavax/inject/Provider;
invoke-direct {v0, p0}, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;-><init>(Ljavax/inject/Provider;)V
return-object v0
:cond_1
:goto_0
return-object p0
.end method
.method public get()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->instance:Ljava/lang/Object;
sget-object v1, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->UNINITIALIZED:Ljava/lang/Object;
if-ne v0, v1, :cond_1
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->provider:Ljavax/inject/Provider;
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->instance:Ljava/lang/Object;
goto :goto_0
:cond_0
invoke-interface {v0}, Ljavax/inject/Provider;->get()Ljava/lang/Object;
move-result-object v0
iput-object v0, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->instance:Ljava/lang/Object;
const/4 v1, 0x0
iput-object v1, p0, Lcom/google/android/datatransport/runtime/dagger/internal/SingleCheck;->provider:Ljavax/inject/Provider;
:cond_1
:goto_0
return-object v0
.end method