Rabbit-R1/switch port/smali/smali_classes3/io/sentry/SynchronizedCollection.smali
2024-05-21 17:08:36 -04:00

736 lines
15 KiB
Smali

.class Lio/sentry/SynchronizedCollection;
.super Ljava/lang/Object;
.source "SynchronizedCollection.java"
# interfaces
.implements Ljava/util/Collection;
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Ljava/util/Collection<",
"TE;>;",
"Ljava/io/Serializable;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x217c0172bf490b22L
# instance fields
.field private final collection:Ljava/util/Collection;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Collection<",
"TE;>;"
}
.end annotation
.end field
.field final lock:Ljava/lang/Object;
# direct methods
.method constructor <init>(Ljava/util/Collection;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"TE;>;)V"
}
.end annotation
.line 75
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_0
iput-object p1, p0, Lio/sentry/SynchronizedCollection;->collection:Ljava/util/Collection;
iput-object p0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
return-void
.line 77
:cond_0
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "Collection must not be null."
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method constructor <init>(Ljava/util/Collection;Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"TE;>;",
"Ljava/lang/Object;",
")V"
}
.end annotation
.line 90
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_1
if-eqz p2, :cond_0
iput-object p1, p0, Lio/sentry/SynchronizedCollection;->collection:Ljava/util/Collection;
iput-object p2, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
return-void
.line 95
:cond_0
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "Lock must not be null."
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
.line 92
:cond_1
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "Collection must not be null."
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static synchronizedCollection(Ljava/util/Collection;)Lio/sentry/SynchronizedCollection;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/Collection<",
"TT;>;)",
"Lio/sentry/SynchronizedCollection<",
"TT;>;"
}
.end annotation
.line 65
new-instance v0, Lio/sentry/SynchronizedCollection;
invoke-direct {v0, p0}, Lio/sentry/SynchronizedCollection;-><init>(Ljava/util/Collection;)V
return-object v0
.end method
# virtual methods
.method public add(Ljava/lang/Object;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TE;)Z"
}
.end annotation
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 114
monitor-enter v0
.line 115
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 116
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public addAll(Ljava/util/Collection;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"+TE;>;)Z"
}
.end annotation
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 121
monitor-enter v0
.line 122
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->addAll(Ljava/util/Collection;)Z
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 123
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public clear()V
.locals 1
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 128
monitor-enter v0
.line 129
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->clear()V
.line 130
monitor-exit v0
return-void
:catchall_0
move-exception p0
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public contains(Ljava/lang/Object;)Z
.locals 1
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 135
monitor-enter v0
.line 136
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->contains(Ljava/lang/Object;)Z
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 137
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public containsAll(Ljava/util/Collection;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"*>;)Z"
}
.end annotation
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 142
monitor-enter v0
.line 143
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->containsAll(Ljava/util/Collection;)Z
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 144
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method protected decorated()Ljava/util/Collection;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Collection<",
"TE;>;"
}
.end annotation
iget-object p0, p0, Lio/sentry/SynchronizedCollection;->collection:Ljava/util/Collection;
return-object p0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 2
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 216
monitor-enter v0
const/4 v1, 0x1
if-ne p1, p0, :cond_0
.line 218
:try_start_0
monitor-exit v0
return v1
:catchall_0
move-exception p0
goto :goto_1
:cond_0
if-eq p1, p0, :cond_2
.line 220
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x0
:cond_2
:goto_0
monitor-exit v0
return v1
.line 221
:goto_1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public hashCode()I
.locals 1
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 226
monitor-enter v0
.line 227
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->hashCode()I
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 228
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public isEmpty()Z
.locals 1
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 149
monitor-enter v0
.line 150
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->isEmpty()Z
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 151
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public iterator()Ljava/util/Iterator;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"TE;>;"
}
.end annotation
.line 168
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p0
return-object p0
.end method
.method public remove(Ljava/lang/Object;)Z
.locals 1
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 187
monitor-enter v0
.line 188
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->remove(Ljava/lang/Object;)Z
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 189
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public removeAll(Ljava/util/Collection;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"*>;)Z"
}
.end annotation
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 194
monitor-enter v0
.line 195
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->removeAll(Ljava/util/Collection;)Z
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 196
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public retainAll(Ljava/util/Collection;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"*>;)Z"
}
.end annotation
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 201
monitor-enter v0
.line 202
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->retainAll(Ljava/util/Collection;)Z
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 203
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public size()I
.locals 1
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 208
monitor-enter v0
.line 209
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->size()I
move-result p0
monitor-exit v0
return p0
:catchall_0
move-exception p0
.line 210
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public toArray()[Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 173
monitor-enter v0
.line 174
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;
move-result-object p0
monitor-exit v0
return-object p0
:catchall_0
move-exception p0
.line 175
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public toArray([Ljava/lang/Object;)[Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)[TT;"
}
.end annotation
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 180
monitor-enter v0
.line 181
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-interface {p0, p1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p0
monitor-exit v0
return-object p0
:catchall_0
move-exception p0
.line 182
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method
.method public toString()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lio/sentry/SynchronizedCollection;->lock:Ljava/lang/Object;
.line 233
monitor-enter v0
.line 234
:try_start_0
invoke-virtual {p0}, Lio/sentry/SynchronizedCollection;->decorated()Ljava/util/Collection;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
monitor-exit v0
return-object p0
:catchall_0
move-exception p0
.line 235
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p0
.end method