- Fix: Correct potential concurrency problem which might have occurred when registering on multiple threads at once.
- Fix: Correct concurrency problem which might have occurred when registering on multiple threads at once.
- Explicitly prevent registering the same instance twice.
- Fix: Ignore synthetic bridge methods created by JDK 8.
- Explicitly disallow
null
argument toregister
,unregister
, andpost
.
- Explicitly disallow
void
return type on@Produce
methods. - Avoid producers and subscribers being called after unregistering from inside a subscribe method.
- Avoid potential
IllegalArgumentException
when unregistering in a subscriber callback.
- Ensure concurrency internally when calling
register
.
- Exceptions in handlers and producers are no longer caught and logged.
- Producer methods can return
null
to indicate that there is no initial value to dispatch. No subscriber methods will be called ifnull
is returned. - An exception is now thrown if a class attempts to subscribe or produce on a non-public method.
- Producer methods can no longer return
null
.
- Add thread enforcer which verifies bus interaction is occuring on a specific thread.
- Add Android sample application demonstrating communication between activity and two fragments.
- Fix: Correct producer unregister failing to remove registration.
- Add
@Produce
method annotation which denotes a method to be invoked for an initial value to pass to@Subscribe
methods when registering. Only a single producer may be registered for a type in each event bus instance.
Initial release.