SubscriberMethodFinder.smali
.class Lorg/greenrobot/eventbus/SubscriberMethodFinder;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
}
.end annotation
# static fields
.field private static final d:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Ljava/util/List<",
"Lorg/greenrobot/eventbus/SubscriberMethod;",
">;>;"
}
.end annotation
.end field
.field private static final e:[Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
# instance fields
.field private a:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lorg/greenrobot/eventbus/meta/SubscriberInfoIndex;",
">;"
}
.end annotation
.end field
.field private final b:Z
.field private final c:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
sput-object v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->d:Ljava/util/Map;
const/4 v0, 0x4
new-array v0, v0, [Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
sput-object v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e:[Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
return-void
.end method
.method constructor <init>(Ljava/util/List;ZZ)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lorg/greenrobot/eventbus/meta/SubscriberInfoIndex;",
">;ZZ)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->a:Ljava/util/List;
iput-boolean p2, p0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->b:Z
iput-boolean p3, p0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->c:Z
return-void
.end method
.method private b(Ljava/lang/Class;)Ljava/util/List;
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Ljava/util/List<",
"Lorg/greenrobot/eventbus/SubscriberMethod;",
">;"
}
.end annotation
invoke-direct {p0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->g()Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
move-result-object v0
invoke-virtual {v0, p1}, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->c(Ljava/lang/Class;)V
:goto_7
iget-object p1, v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->e:Ljava/lang/Class;
if-eqz p1, :cond_36
invoke-direct {p0, v0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->f(Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;)Lorg/greenrobot/eventbus/meta/SubscriberInfo;
move-result-object p1
iput-object p1, v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->g:Lorg/greenrobot/eventbus/meta/SubscriberInfo;
if-eqz p1, :cond_2f
invoke-interface {p1}, Lorg/greenrobot/eventbus/meta/SubscriberInfo;->a()[Lorg/greenrobot/eventbus/SubscriberMethod;
move-result-object p1
array-length v1, p1
const/4 v2, 0x0
:goto_19
if-ge v2, v1, :cond_32
aget-object v3, p1, v2
iget-object v4, v3, Lorg/greenrobot/eventbus/SubscriberMethod;->a:Ljava/lang/reflect/Method;
iget-object v5, v3, Lorg/greenrobot/eventbus/SubscriberMethod;->c:Ljava/lang/Class;
invoke-virtual {v0, v4, v5}, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->a(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z
move-result v4
if-eqz v4, :cond_2c
iget-object v4, v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->a:Ljava/util/List;
invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_2c
add-int/lit8 v2, v2, 0x1
goto :goto_19
:cond_2f
invoke-direct {p0, v0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->d(Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;)V
:cond_32
invoke-virtual {v0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->d()V
goto :goto_7
:cond_36
invoke-direct {p0, v0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e(Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;)Ljava/util/List;
move-result-object p1
return-object p1
.end method
.method private c(Ljava/lang/Class;)Ljava/util/List;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Ljava/util/List<",
"Lorg/greenrobot/eventbus/SubscriberMethod;",
">;"
}
.end annotation
invoke-direct {p0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->g()Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
move-result-object v0
invoke-virtual {v0, p1}, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->c(Ljava/lang/Class;)V
:goto_7
iget-object p1, v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->e:Ljava/lang/Class;
if-eqz p1, :cond_12
invoke-direct {p0, v0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->d(Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;)V
invoke-virtual {v0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->d()V
goto :goto_7
:cond_12
invoke-direct {p0, v0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e(Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;)Ljava/util/List;
move-result-object p1
return-object p1
.end method
.method private d(Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;)V
.registers 16
const/4 v0, 0x1
:try_start_1
iget-object v1, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->e:Ljava/lang/Class;
invoke-virtual {v1}, Ljava/lang/Class;->getDeclaredMethods()[Ljava/lang/reflect/Method;
move-result-object v1
:try_end_7
.catchall {:try_start_1 .. :try_end_7} :catchall_8
goto :goto_10
:catchall_8
:try_start_8
iget-object v1, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->e:Ljava/lang/Class;
invoke-virtual {v1}, Ljava/lang/Class;->getMethods()[Ljava/lang/reflect/Method;
move-result-object v1
:try_end_e
.catch Ljava/lang/LinkageError; {:try_start_8 .. :try_end_e} :catch_ee
iput-boolean v0, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->f:Z
:goto_10
array-length v2, v1
const/4 v3, 0x0
const/4 v4, 0x0
:goto_13
if-ge v4, v2, :cond_ed
aget-object v6, v1, v4
invoke-virtual {v6}, Ljava/lang/reflect/Method;->getModifiers()I
move-result v5
and-int/lit8 v7, v5, 0x1
const-string v8, "."
if-eqz v7, :cond_a7
and-int/lit16 v5, v5, 0x1448
if-nez v5, :cond_a7
invoke-virtual {v6}, Ljava/lang/reflect/Method;->getParameterTypes()[Ljava/lang/Class;
move-result-object v5
array-length v7, v5
if-ne v7, v0, :cond_5b
const-class v7, Lorg/greenrobot/eventbus/Subscribe;
invoke-virtual {v6, v7}, Ljava/lang/reflect/Method;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
move-result-object v7
check-cast v7, Lorg/greenrobot/eventbus/Subscribe;
if-eqz v7, :cond_e9
aget-object v8, v5, v3
invoke-virtual {p1, v6, v8}, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->a(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z
move-result v5
if-eqz v5, :cond_e9
invoke-interface {v7}, Lorg/greenrobot/eventbus/Subscribe;->threadMode()Lorg/greenrobot/eventbus/ThreadMode;
move-result-object v9
iget-object v11, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->a:Ljava/util/List;
new-instance v12, Lorg/greenrobot/eventbus/SubscriberMethod;
invoke-interface {v7}, Lorg/greenrobot/eventbus/Subscribe;->priority()I
move-result v10
invoke-interface {v7}, Lorg/greenrobot/eventbus/Subscribe;->sticky()Z
move-result v13
move-object v5, v12
move-object v7, v8
move-object v8, v9
move v9, v10
move v10, v13
invoke-direct/range {v5 .. v10}, Lorg/greenrobot/eventbus/SubscriberMethod;-><init>(Ljava/lang/reflect/Method;Ljava/lang/Class;Lorg/greenrobot/eventbus/ThreadMode;IZ)V
invoke-interface {v11, v12}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto/16 :goto_e9
:cond_5b
iget-boolean v7, p0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->b:Z
if-eqz v7, :cond_e9
const-class v7, Lorg/greenrobot/eventbus/Subscribe;
invoke-virtual {v6, v7}, Ljava/lang/reflect/Method;->isAnnotationPresent(Ljava/lang/Class;)Z
move-result v7
if-nez v7, :cond_69
goto/16 :goto_e9
:cond_69
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v6}, Ljava/lang/reflect/Method;->getDeclaringClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance v0, Lorg/greenrobot/eventbus/EventBusException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "@Subscribe method "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, "must have exactly 1 parameter but has "
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
array-length p1, v5
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lorg/greenrobot/eventbus/EventBusException;-><init>(Ljava/lang/String;)V
throw v0
:cond_a7
iget-boolean v5, p0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->b:Z
if-eqz v5, :cond_e9
const-class v5, Lorg/greenrobot/eventbus/Subscribe;
invoke-virtual {v6, v5}, Ljava/lang/reflect/Method;->isAnnotationPresent(Ljava/lang/Class;)Z
move-result v5
if-nez v5, :cond_b4
goto :goto_e9
:cond_b4
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v6}, Ljava/lang/reflect/Method;->getDeclaringClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-instance v0, Lorg/greenrobot/eventbus/EventBusException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, " is a illegal @Subscribe method: must be public, non-static, and non-abstract"
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lorg/greenrobot/eventbus/EventBusException;-><init>(Ljava/lang/String;)V
throw v0
:cond_e9
:goto_e9
add-int/lit8 v4, v4, 0x1
goto/16 :goto_13
:cond_ed
return-void
:catch_ee
move-exception v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Could not inspect methods of "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object p1, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->e:Ljava/lang/Class;
invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
iget-boolean v1, p0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->c:Z
if-eqz v1, :cond_11c
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, ". Please consider using EventBus annotation processor to avoid reflection."
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
goto :goto_12d
:cond_11c
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, ". Please make this class visible to EventBus annotation processor to avoid reflection."
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
:goto_12d
new-instance v1, Lorg/greenrobot/eventbus/EventBusException;
invoke-direct {v1, p1, v0}, Lorg/greenrobot/eventbus/EventBusException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method private e(Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;)Ljava/util/List;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;",
")",
"Ljava/util/List<",
"Lorg/greenrobot/eventbus/SubscriberMethod;",
">;"
}
.end annotation
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->a:Ljava/util/List;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-virtual {p1}, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->e()V
sget-object v1, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e:[Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
monitor-enter v1
const/4 v2, 0x0
:goto_e
const/4 v3, 0x4
if-ge v2, v3, :cond_1f
:try_start_11
sget-object v3, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e:[Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
aget-object v3, v3, v2
if-nez v3, :cond_1c
sget-object v3, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e:[Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
aput-object p1, v3, v2
goto :goto_1f
:cond_1c
add-int/lit8 v2, v2, 0x1
goto :goto_e
:cond_1f
:goto_1f
monitor-exit v1
return-object v0
:catchall_21
move-exception p1
monitor-exit v1
:try_end_23
.catchall {:try_start_11 .. :try_end_23} :catchall_21
throw p1
.end method
.method private f(Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;)Lorg/greenrobot/eventbus/meta/SubscriberInfo;
.registers 5
iget-object v0, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->g:Lorg/greenrobot/eventbus/meta/SubscriberInfo;
if-eqz v0, :cond_19
invoke-interface {v0}, Lorg/greenrobot/eventbus/meta/SubscriberInfo;->b()Lorg/greenrobot/eventbus/meta/SubscriberInfo;
move-result-object v0
if-eqz v0, :cond_19
iget-object v0, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->g:Lorg/greenrobot/eventbus/meta/SubscriberInfo;
invoke-interface {v0}, Lorg/greenrobot/eventbus/meta/SubscriberInfo;->b()Lorg/greenrobot/eventbus/meta/SubscriberInfo;
move-result-object v0
iget-object v1, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->e:Ljava/lang/Class;
invoke-interface {v0}, Lorg/greenrobot/eventbus/meta/SubscriberInfo;->c()Ljava/lang/Class;
move-result-object v2
if-ne v1, v2, :cond_19
return-object v0
:cond_19
iget-object v0, p0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->a:Ljava/util/List;
if-eqz v0, :cond_36
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_21
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_36
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lorg/greenrobot/eventbus/meta/SubscriberInfoIndex;
iget-object v2, p1, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;->e:Ljava/lang/Class;
invoke-interface {v1, v2}, Lorg/greenrobot/eventbus/meta/SubscriberInfoIndex;->a(Ljava/lang/Class;)Lorg/greenrobot/eventbus/meta/SubscriberInfo;
move-result-object v1
if-eqz v1, :cond_21
return-object v1
:cond_36
const/4 p1, 0x0
return-object p1
.end method
.method private g()Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
.registers 6
sget-object v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e:[Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
monitor-enter v0
const/4 v1, 0x0
:goto_4
const/4 v2, 0x4
if-ge v1, v2, :cond_17
:try_start_7
sget-object v2, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e:[Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
aget-object v2, v2, v1
if-eqz v2, :cond_14
sget-object v3, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->e:[Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
const/4 v4, 0x0
aput-object v4, v3, v1
monitor-exit v0
return-object v2
:cond_14
add-int/lit8 v1, v1, 0x1
goto :goto_4
:cond_17
monitor-exit v0
:try_end_18
.catchall {:try_start_7 .. :try_end_18} :catchall_1e
new-instance v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;
invoke-direct {v0}, Lorg/greenrobot/eventbus/SubscriberMethodFinder$FindState;-><init>()V
return-object v0
:catchall_1e
move-exception v1
:try_start_1f
monitor-exit v0
:try_end_20
.catchall {:try_start_1f .. :try_end_20} :catchall_1e
throw v1
.end method
# virtual methods
.method a(Ljava/lang/Class;)Ljava/util/List;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Class<",
"*>;)",
"Ljava/util/List<",
"Lorg/greenrobot/eventbus/SubscriberMethod;",
">;"
}
.end annotation
sget-object v0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->d:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
if-eqz v0, :cond_b
return-object v0
:cond_b
iget-boolean v0, p0, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->c:Z
if-eqz v0, :cond_14
invoke-direct {p0, p1}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->c(Ljava/lang/Class;)Ljava/util/List;
move-result-object v0
goto :goto_18
:cond_14
invoke-direct {p0, p1}, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->b(Ljava/lang/Class;)Ljava/util/List;
move-result-object v0
:goto_18
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_24
sget-object v1, Lorg/greenrobot/eventbus/SubscriberMethodFinder;->d:Ljava/util/Map;
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-object v0
:cond_24
new-instance v0, Lorg/greenrobot/eventbus/EventBusException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Subscriber "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p1, " and its super classes have no public methods with the @Subscribe annotation"
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Lorg/greenrobot/eventbus/EventBusException;-><init>(Ljava/lang/String;)V
throw v0
.end method