.class public final enum Lokhttp3/internal/http2/ErrorCode; .super Ljava/lang/Enum; .source "" # annotations .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Enum<", "Lokhttp3/internal/http2/ErrorCode;", ">;" } .end annotation # static fields .field private static final synthetic $VALUES:[Lokhttp3/internal/http2/ErrorCode; .field public static final enum CANCEL:Lokhttp3/internal/http2/ErrorCode; .field public static final enum FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode; .field public static final enum INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode; .field public static final enum NO_ERROR:Lokhttp3/internal/http2/ErrorCode; .field public static final enum PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode; .field public static final enum REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode; # instance fields .field public final httpCode:I # direct methods .method static constructor ()V .locals 9 new-instance v0, Lokhttp3/internal/http2/ErrorCode; const/4 v1, 0x0 const-string v2, "NO_ERROR" invoke-direct {v0, v2, v1, v1}, Lokhttp3/internal/http2/ErrorCode;->(Ljava/lang/String;II)V sput-object v0, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode; new-instance v0, Lokhttp3/internal/http2/ErrorCode; const/4 v2, 0x1 const-string v3, "PROTOCOL_ERROR" invoke-direct {v0, v3, v2, v2}, Lokhttp3/internal/http2/ErrorCode;->(Ljava/lang/String;II)V sput-object v0, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode; new-instance v0, Lokhttp3/internal/http2/ErrorCode; const/4 v3, 0x2 const-string v4, "INTERNAL_ERROR" invoke-direct {v0, v4, v3, v3}, Lokhttp3/internal/http2/ErrorCode;->(Ljava/lang/String;II)V sput-object v0, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode; new-instance v0, Lokhttp3/internal/http2/ErrorCode; const/4 v4, 0x3 const-string v5, "FLOW_CONTROL_ERROR" invoke-direct {v0, v5, v4, v4}, Lokhttp3/internal/http2/ErrorCode;->(Ljava/lang/String;II)V sput-object v0, Lokhttp3/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode; new-instance v0, Lokhttp3/internal/http2/ErrorCode; const/4 v5, 0x4 const-string v6, "REFUSED_STREAM" const/4 v7, 0x7 invoke-direct {v0, v6, v5, v7}, Lokhttp3/internal/http2/ErrorCode;->(Ljava/lang/String;II)V sput-object v0, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode; new-instance v0, Lokhttp3/internal/http2/ErrorCode; const/4 v6, 0x5 const-string v7, "CANCEL" const/16 v8, 0x8 invoke-direct {v0, v7, v6, v8}, Lokhttp3/internal/http2/ErrorCode;->(Ljava/lang/String;II)V sput-object v0, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode; const/4 v0, 0x6 new-array v0, v0, [Lokhttp3/internal/http2/ErrorCode; sget-object v7, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode; aput-object v7, v0, v1 sget-object v1, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode; aput-object v1, v0, v2 sget-object v1, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode; aput-object v1, v0, v3 sget-object v1, Lokhttp3/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode; aput-object v1, v0, v4 sget-object v1, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode; aput-object v1, v0, v5 sget-object v1, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode; aput-object v1, v0, v6 sput-object v0, Lokhttp3/internal/http2/ErrorCode;->$VALUES:[Lokhttp3/internal/http2/ErrorCode; return-void .end method .method private constructor (Ljava/lang/String;II)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(I)V" } .end annotation invoke-direct {p0, p1, p2}, Ljava/lang/Enum;->(Ljava/lang/String;I)V iput p3, p0, Lokhttp3/internal/http2/ErrorCode;->httpCode:I return-void .end method .method public static fromHttp2(I)Lokhttp3/internal/http2/ErrorCode; .locals 5 invoke-static {}, Lokhttp3/internal/http2/ErrorCode;->values()[Lokhttp3/internal/http2/ErrorCode; move-result-object v0 array-length v1, v0 const/4 v2, 0x0 :goto_0 if-ge v2, v1, :cond_1 aget-object v3, v0, v2 iget v4, v3, Lokhttp3/internal/http2/ErrorCode;->httpCode:I if-ne v4, p0, :cond_0 return-object v3 :cond_0 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_1 const/4 p0, 0x0 return-object p0 .end method .method public static valueOf(Ljava/lang/String;)Lokhttp3/internal/http2/ErrorCode; .locals 1 const-class v0, Lokhttp3/internal/http2/ErrorCode; invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum; move-result-object p0 check-cast p0, Lokhttp3/internal/http2/ErrorCode; return-object p0 .end method .method public static values()[Lokhttp3/internal/http2/ErrorCode; .locals 1 sget-object v0, Lokhttp3/internal/http2/ErrorCode;->$VALUES:[Lokhttp3/internal/http2/ErrorCode; invoke-virtual {v0}, [Lokhttp3/internal/http2/ErrorCode;->clone()Ljava/lang/Object; move-result-object v0 check-cast v0, [Lokhttp3/internal/http2/ErrorCode; return-object v0 .end method