eventbus: remove method name requirement
This commit is contained in:
@@ -138,7 +138,10 @@ public class EventBus
|
|||||||
}
|
}
|
||||||
|
|
||||||
final String preferredName = "on" + parameterClazz.getSimpleName();
|
final String preferredName = "on" + parameterClazz.getSimpleName();
|
||||||
Preconditions.checkArgument(method.getName().equals(preferredName), "Subscribed method " + method + " should be named " + preferredName);
|
if (!method.getName().equals(preferredName))
|
||||||
|
{
|
||||||
|
log.warn("Subscribed method " + method + " should be named " + preferredName);
|
||||||
|
}
|
||||||
|
|
||||||
method.setAccessible(true);
|
method.setAccessible(true);
|
||||||
SubscriberMethod lambda = null;
|
SubscriberMethod lambda = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user