g.smali

.class final Lxb/g;
.super Lxb/c$a;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lxb/g$a;,
        Lxb/g$c;,
        Lxb/g$b;
    }
.end annotation

.annotation build Lorg/codehaus/mojo/animal_sniffer/IgnoreJRERequirement;
.end annotation


# static fields
.field static final a:Lxb/c$a;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    new-instance v0, Lxb/g;

    invoke-direct {v0}, Lxb/g;-><init>()V

    sput-object v0, Lxb/g;->a:Lxb/c$a;

    return-void
.end method

.method constructor <init>()V
    .registers 1

    invoke-direct {p0}, Lxb/c$a;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Lxb/z;)Lxb/c;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/reflect/Type;",
            "[",
            "Ljava/lang/annotation/Annotation;",
            "Lxb/z;",
            ")",
            "Lxb/c<",
            "**>;"
        }
    .end annotation

    invoke-static {p1}, Lxb/c$a;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;

    move-result-object p2

    const-class p3, Ljava/util/concurrent/CompletableFuture;

    if-eq p2, p3, :cond_a

    const/4 p1, 0x0

    return-object p1

    :cond_a
    instance-of p2, p1, Ljava/lang/reflect/ParameterizedType;

    if-eqz p2, :cond_3b

    check-cast p1, Ljava/lang/reflect/ParameterizedType;

    const/4 p2, 0x0

    invoke-static {p2, p1}, Lxb/c$a;->b(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;

    move-result-object p1

    invoke-static {p1}, Lxb/c$a;->c(Ljava/lang/reflect/Type;)Ljava/lang/Class;

    move-result-object p3

    const-class v0, Lxb/y;

    if-eq p3, v0, :cond_23

    new-instance p2, Lxb/g$a;

    invoke-direct {p2, p1}, Lxb/g$a;-><init>(Ljava/lang/reflect/Type;)V

    return-object p2

    :cond_23
    instance-of p3, p1, Ljava/lang/reflect/ParameterizedType;

    if-eqz p3, :cond_33

    check-cast p1, Ljava/lang/reflect/ParameterizedType;

    invoke-static {p2, p1}, Lxb/c$a;->b(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;

    move-result-object p1

    new-instance p2, Lxb/g$c;

    invoke-direct {p2, p1}, Lxb/g$c;-><init>(Ljava/lang/reflect/Type;)V

    return-object p2

    :cond_33
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "Response must be parameterized as Response<Foo> or Response<? extends Foo>"

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_3b
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "CompletableFuture return type must be parameterized as CompletableFuture<Foo> or CompletableFuture<? extends Foo>"

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method