2020-05-07 23:11:04 +00:00
|
|
|
.class public final Lu/b/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "DoubleCheck.java"
|
|
|
|
|
|
|
|
# interfaces
|
2020-05-07 23:11:04 +00:00
|
|
|
.implements Lx/a/a;
|
|
|
|
.implements Lu/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
2020-05-07 23:11:04 +00:00
|
|
|
"Lx/a/a<",
|
2020-02-20 19:33:18 +00:00
|
|
|
"TT;>;",
|
2020-05-07 23:11:04 +00:00
|
|
|
"Lu/a<",
|
2020-02-20 19:33:18 +00:00
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final c:Ljava/lang/Object;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-05-07 23:11:04 +00:00
|
|
|
.field public volatile a:Lx/a/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-05-07 23:11:04 +00:00
|
|
|
"Lx/a/a<",
|
2020-02-20 19:33:18 +00:00
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public volatile b:Ljava/lang/Object;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
sput-object v0, Lu/b/a;->c:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
.method public constructor <init>(Lx/a/a;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
2020-05-07 23:11:04 +00:00
|
|
|
"Lx/a/a<",
|
2020-02-20 19:33:18 +00:00
|
|
|
"TT;>;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
sget-object v0, Lu/b/a;->c:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
iput-object v0, p0, Lu/b/a;->b:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
iput-object p1, p0, Lu/b/a;->a:Lx/a/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 3
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
sget-object v0, Lu/b/a;->c:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
if-eq p0, v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
if-ne p0, p1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v2, "Scoped provider was invoked recursively returning different results: "
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p0, " & "
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p0, ". This is likely due to a circular dependency."
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
.method public static a(Lx/a/a;)Lx/a/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<P::",
|
2020-05-07 23:11:04 +00:00
|
|
|
"Lx/a/a<",
|
2020-02-20 19:33:18 +00:00
|
|
|
"TT;>;T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(TP;)",
|
2020-05-07 23:11:04 +00:00
|
|
|
"Lx/a/a<",
|
2020-02-20 19:33:18 +00:00
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
instance-of v0, p0, Lu/b/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_0
|
2020-05-07 23:11:04 +00:00
|
|
|
new-instance v0, Lu/b/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-direct {v0, p0}, Lu/b/a;-><init>(Lx/a/a;)V
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public get()Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
iget-object v0, p0, Lu/b/a;->b:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
sget-object v1, Lu/b/a;->c:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-05-07 23:11:04 +00:00
|
|
|
iget-object v0, p0, Lu/b/a;->b:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
sget-object v1, Lu/b/a;->c:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
iget-object v0, p0, Lu/b/a;->a:Lx/a/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-interface {v0}, Lx/a/a;->get()Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
iget-object v1, p0, Lu/b/a;->b:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
invoke-static {v1, v0}, Lu/b/a;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
iput-object v0, p0, Lu/b/a;->b:Ljava/lang/Object;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-05-07 23:11:04 +00:00
|
|
|
iput-object v1, p0, Lu/b/a;->a:Lx/a/a;
|
2020-02-20 19:33:18 +00:00
|
|
|
|
|
|
|
: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
|