Remove USE_PARAMETER #35
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "f/remove-use-parameter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use
void.class
instead ofUSE_PARAMETER.class
which was introduced for reasons no longer present.Additionally, update the accessibility of reflective event handler methods only if that's actually necessary. That way, public handlers can be can be invoked reflectively without opening the containing module to Event Bus.
f/remove-use-parameterto Remove USE_PARAMETER@ -38,3 +37,3 @@
this.listener = listener;
this.method = method;
useParameter = annotation.value() == USE_PARAMETER.class;
useParameter = annotation.value() == void.class;
|| annotation.value == Void.class
That wouldn't be the default type though. Yes, using
Void
as an event type doesn't make much sense, but it is possible, which isn't the case forvoid
.