Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

Switch to using Void instead of Object for event-less subscriptions #10

Merged
merged 1 commit into from
Oct 28, 2015
Merged

Conversation

pt2121
Copy link
Contributor

@pt2121 pt2121 commented Oct 23, 2015

#9

@@ -10,7 +10,7 @@
/**
* Used for event notifications that have no extra data.
*/
public static final Object UNIT = new Object();
public static final Void UNIT = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary - just use null.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, fixing it now.

dlew added a commit that referenced this pull request Oct 28, 2015
Switch to using Void instead of Object for event-less subscriptions
@dlew dlew merged commit 94504e7 into trello-archive:master Oct 28, 2015
@dlew
Copy link
Contributor

dlew commented Oct 28, 2015

Thanks!

@pt2121
Copy link
Contributor Author

pt2121 commented Oct 28, 2015

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants