205 lines
4.6 KiB
Smali
205 lines
4.6 KiB
Smali
.class public Lorg/slf4j/helpers/h;
|
|
.super Ljava/lang/Object;
|
|
.source "SubstituteLoggerFactory.java"
|
|
|
|
# interfaces
|
|
.implements Lpk/a;
|
|
|
|
|
|
# instance fields
|
|
.field public a:Z
|
|
|
|
.field public final b:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lorg/slf4j/helpers/g;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Ljava/util/concurrent/LinkedBlockingQueue;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/LinkedBlockingQueue<",
|
|
"Lqk/d;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput-boolean v0, p0, Lorg/slf4j/helpers/h;->a:Z
|
|
|
|
.line 3
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lorg/slf4j/helpers/h;->b:Ljava/util/Map;
|
|
|
|
.line 4
|
|
new-instance v0, Ljava/util/concurrent/LinkedBlockingQueue;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
|
|
|
|
iput-object v0, p0, Lorg/slf4j/helpers/h;->c:Ljava/util/concurrent/LinkedBlockingQueue;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public declared-synchronized a(Ljava/lang/String;)Lpk/c;
|
|
.locals 3
|
|
|
|
monitor-enter p0
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Lorg/slf4j/helpers/h;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lorg/slf4j/helpers/g;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Lorg/slf4j/helpers/g;
|
|
|
|
iget-object v1, p0, Lorg/slf4j/helpers/h;->c:Ljava/util/concurrent/LinkedBlockingQueue;
|
|
|
|
iget-boolean v2, p0, Lorg/slf4j/helpers/h;->a:Z
|
|
|
|
invoke-direct {v0, p1, v1, v2}, Lorg/slf4j/helpers/g;-><init>(Ljava/lang/String;Ljava/util/Queue;Z)V
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lorg/slf4j/helpers/h;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
monitor-exit p0
|
|
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/slf4j/helpers/h;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v0}, Ljava/util/Map;->clear()V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lorg/slf4j/helpers/h;->c:Ljava/util/concurrent/LinkedBlockingQueue;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/LinkedBlockingQueue;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Ljava/util/concurrent/LinkedBlockingQueue;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/concurrent/LinkedBlockingQueue<",
|
|
"Lqk/d;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/slf4j/helpers/h;->c:Ljava/util/concurrent/LinkedBlockingQueue;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public d()Ljava/util/List;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
iget-object v1, p0, Lorg/slf4j/helpers/h;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public e()Ljava/util/List;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lorg/slf4j/helpers/g;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
iget-object v1, p0, Lorg/slf4j/helpers/h;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public f()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
iput-boolean v0, p0, Lorg/slf4j/helpers/h;->a:Z
|
|
|
|
return-void
|
|
.end method
|