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

Issue/621 #624

Merged
merged 2 commits into from
Jan 25, 2018
Merged

Issue/621 #624

merged 2 commits into from
Jan 25, 2018

Conversation

mathieu-lavigne
Copy link
Contributor

@mathieu-lavigne mathieu-lavigne commented Jan 15, 2018

This PR for issue #621

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

Can you let us know if you agree and want to improve your fix/PR?

*/
protected Collection<ID> toCollection(Iterable<ID> ids) {

final Collection<ID> idsList = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

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

Will technically fix it but is a kind of waste if the Iterable already is a Collection. IMHO we should first check with instanceof and then only cast to avoid pointless conversion. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are absolutely right. I'll change my PR.

Do not recreate Collection declared as Iterable has it is already a Collection
@hohwille
Copy link
Member

IMHO now perfect. @mathieu-lavigne 👍 thanks a lot for your active collaboration!
As it fixes a bug and is a straight and simple fix I do not see why we would need to wait for further feedback. I will therefore merge straight away.
In case some re-plannings are done the milestone might have to be adjusted.

@hohwille hohwille merged commit a9ac4b1 into oasp:develop Jan 25, 2018
@mathieu-lavigne mathieu-lavigne deleted the issue/621 branch January 25, 2018 12:59
@hohwille hohwille modified the milestones: oasp:EVE, oasp:2.6.0 May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants