StateVerifier$DebugStateVerifier.smali
.class Lcom/bumptech/glide/util/pool/StateVerifier$DebugStateVerifier;
.super Lcom/bumptech/glide/util/pool/StateVerifier;
.source "StateVerifier.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/bumptech/glide/util/pool/StateVerifier;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "DebugStateVerifier"
.end annotation
# instance fields
.field private volatile recycledAtStackTraceException:Ljava/lang/RuntimeException;
# direct methods
.method constructor <init>()V
.registers 2
const/4 v0, 0x0
.line 61
invoke-direct {p0, v0}, Lcom/bumptech/glide/util/pool/StateVerifier;-><init>(Lcom/bumptech/glide/util/pool/StateVerifier$1;)V
return-void
.end method
# virtual methods
.method setRecycled(Z)V
.registers 3
if-eqz p1, :cond_c
.line 73
new-instance p1, Ljava/lang/RuntimeException;
const-string v0, "Released"
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
iput-object p1, p0, Lcom/bumptech/glide/util/pool/StateVerifier$DebugStateVerifier;->recycledAtStackTraceException:Ljava/lang/RuntimeException;
goto :goto_f
:cond_c
const/4 p1, 0x0
.line 75
iput-object p1, p0, Lcom/bumptech/glide/util/pool/StateVerifier$DebugStateVerifier;->recycledAtStackTraceException:Ljava/lang/RuntimeException;
:goto_f
return-void
.end method
.method public throwIfRecycled()V
.registers 4
.line 65
iget-object v0, p0, Lcom/bumptech/glide/util/pool/StateVerifier$DebugStateVerifier;->recycledAtStackTraceException:Ljava/lang/RuntimeException;
if-nez v0, :cond_5
return-void
.line 66
:cond_5
new-instance v0, Ljava/lang/IllegalStateException;
iget-object v1, p0, Lcom/bumptech/glide/util/pool/StateVerifier$DebugStateVerifier;->recycledAtStackTraceException:Ljava/lang/RuntimeException;
const-string v2, "Already released"
invoke-direct {v0, v2, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method