a.smali
.class public Lcom/plug/a/a;
.super Ljava/lang/Object;
.source "CmObservable.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/plug/a/a$a;
}
.end annotation
# instance fields
.field private a:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set",
"<",
"Lcom/plug/a/a$a;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.registers 2
.prologue
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 17
new-instance v0, Ljava/util/WeakHashMap;
invoke-direct {v0}, Ljava/util/WeakHashMap;-><init>()V
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/plug/a/a;->a:Ljava/util/Set;
return-void
.end method
# virtual methods
.method public a()V
.registers 3
.prologue
.line 38
monitor-enter p0
.line 39
:try_start_1
iget-object v0, p0, Lcom/plug/a/a;->a:Ljava/util/Set;
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_7
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1a
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/plug/a/a$a;
.line 40
invoke-virtual {v0, p0}, Lcom/plug/a/a$a;->update(Lcom/plug/a/a;)V
goto :goto_7
.line 42
:catchall_17
move-exception v0
monitor-exit p0
:try_end_19
.catchall {:try_start_1 .. :try_end_19} :catchall_17
throw v0
:cond_1a
:try_start_1a
monitor-exit p0
:try_end_1b
.catchall {:try_start_1a .. :try_end_1b} :catchall_17
.line 43
return-void
.end method
.method public a(Lcom/plug/a/a$a;)V
.registers 3
.prologue
.line 21
monitor-enter p0
.line 22
if-nez p1, :cond_5
.line 23
:try_start_3
monitor-exit p0
.line 27
:goto_4
return-void
.line 25
:cond_5
iget-object v0, p0, Lcom/plug/a/a;->a:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
.line 26
monitor-exit p0
goto :goto_4
:catchall_c
move-exception v0
monitor-exit p0
:try_end_e
.catchall {:try_start_3 .. :try_end_e} :catchall_c
throw v0
.end method
.method public declared-synchronized b(Lcom/plug/a/a$a;)V
.registers 3
.prologue
.line 30
monitor-enter p0
:try_start_1
iget-object v0, p0, Lcom/plug/a/a;->a:Ljava/util/Set;
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_6
.catchall {:try_start_1 .. :try_end_6} :catchall_8
.line 31
monitor-exit p0
return-void
.line 30
:catchall_8
move-exception v0
monitor-exit p0
throw v0
.end method