Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept any List of messages to deliver #38

Closed
wants to merge 1 commit into from

Conversation

mdindoffer
Copy link

Current API accepts only ArrayLists for absolutely no reason.
This forces consumers to always wrap their message lists in a new ArrayList collection like so:

List<Message> messages;
...
client.deliverMessage(new ArrayList<>(messages));

Accept generic Lists instead.

@mdindoffer
Copy link
Author

Closing, there is an already existing PR #34 for this

@mdindoffer mdindoffer closed this Jun 3, 2022
@mdindoffer mdindoffer deleted the apiLists branch December 2, 2022 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant