Changes of com.discord v1325
This commit is contained in:
parent
d9d9f382c9
commit
3cb9e1231d
28086 changed files with 4880345 additions and 0 deletions
|
@ -0,0 +1,333 @@
|
|||
.class public final Lrx/subscriptions/CompositeSubscription;
|
||||
.super Ljava/lang/Object;
|
||||
.source "CompositeSubscription.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Subscription;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public d:Ljava/util/Set;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/Set<",
|
||||
"Lrx/Subscription;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public volatile e:Z
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static d(Ljava/util/Collection;)V
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/util/Collection<",
|
||||
"Lrx/Subscription;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
if-nez p0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
:goto_0
|
||||
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Lrx/Subscription;
|
||||
|
||||
:try_start_0
|
||||
invoke-interface {v1}, Lrx/Subscription;->unsubscribe()V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_0
|
||||
move-exception v1
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
new-instance v0, Ljava/util/ArrayList;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||||
|
||||
:cond_1
|
||||
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
invoke-static {v0}, Lz/i/s;->W(Ljava/util/List;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a(Lrx/Subscription;)V
|
||||
.locals 2
|
||||
|
||||
invoke-interface {p1}, Lrx/Subscription;->isUnsubscribed()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-nez v0, :cond_3
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
iget-object v0, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
new-instance v0, Ljava/util/HashSet;
|
||||
|
||||
const/4 v1, 0x4
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(I)V
|
||||
|
||||
iput-object v0, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
:cond_1
|
||||
iget-object v0, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_2
|
||||
monitor-exit p0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_3
|
||||
:goto_0
|
||||
invoke-interface {p1}, Lrx/Subscription;->unsubscribe()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public b()V
|
||||
.locals 2
|
||||
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
iget-object v0, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
iput-object v1, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
invoke-static {v0}, Lrx/subscriptions/CompositeSubscription;->d(Ljava/util/Collection;)V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
:try_start_1
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public c(Lrx/Subscription;)V
|
||||
.locals 1
|
||||
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
iget-object v0, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
invoke-interface {p1}, Lrx/Subscription;->unsubscribe()V
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
:try_start_1
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 2
|
||||
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
:try_start_0
|
||||
iget-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x1
|
||||
|
||||
iput-boolean v0, p0, Lrx/subscriptions/CompositeSubscription;->e:Z
|
||||
|
||||
iget-object v0, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
iput-object v1, p0, Lrx/subscriptions/CompositeSubscription;->d:Ljava/util/Set;
|
||||
|
||||
monitor-exit p0
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
invoke-static {v0}, Lrx/subscriptions/CompositeSubscription;->d(Ljava/util/Collection;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
:try_start_1
|
||||
monitor-exit p0
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,97 @@
|
|||
.class public final Lrx/subscriptions/SerialSubscription;
|
||||
.super Ljava/lang/Object;
|
||||
.source "SerialSubscription.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lrx/Subscription;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Li0/l/d/a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
new-instance v0, Li0/l/d/a;
|
||||
|
||||
invoke-direct {v0}, Li0/l/d/a;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Li0/l/d/a;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a(Lrx/Subscription;)V
|
||||
.locals 3
|
||||
|
||||
if-eqz p1, :cond_3
|
||||
|
||||
iget-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Li0/l/d/a;
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Lrx/Subscription;
|
||||
|
||||
sget-object v2, Li0/l/d/b;->d:Li0/l/d/b;
|
||||
|
||||
if-ne v1, v2, :cond_1
|
||||
|
||||
invoke-interface {p1}, Lrx/Subscription;->unsubscribe()V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
invoke-virtual {v0, v1, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v2
|
||||
|
||||
if-eqz v2, :cond_0
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
invoke-interface {v1}, Lrx/Subscription;->unsubscribe()V
|
||||
|
||||
:cond_2
|
||||
:goto_0
|
||||
return-void
|
||||
|
||||
:cond_3
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "Subscription can not be null"
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public isUnsubscribed()Z
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Li0/l/d/a;
|
||||
|
||||
invoke-virtual {v0}, Li0/l/d/a;->isUnsubscribed()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public unsubscribe()V
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lrx/subscriptions/SerialSubscription;->d:Li0/l/d/a;
|
||||
|
||||
invoke-virtual {v0}, Li0/l/d/a;->unsubscribe()V
|
||||
|
||||
return-void
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue