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

Break circle dependency in GroupItem members #3795

Merged

Conversation

triller-telekom
Copy link
Contributor

Fixes #3794

Signed-off-by: Stefan Triller stefan.triller@telekom.de

@@ -116,6 +116,9 @@ public GroupFunction getFunction() {

private void collectMembers(Set<Item> allMembers, Set<Item> members) {
for (Item member : members) {
if (allMembers.contains(member)) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

how about continue instead of return? 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just noticed that and changed the code but your continue is even better ;)

Well... that is only if I swap the allMembers.put and the recursive call too... So I think the if I have used now should be fine

Fixes eclipse-archived#3794

Signed-off-by: Stefan Triller <stefan.triller@telekom.de>
Copy link
Contributor

@sjsf sjsf left a comment

Choose a reason for hiding this comment

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

Much better, thanks!

@sjsf sjsf merged commit 1f6dd6d into eclipse-archived:master Jul 4, 2017
@triller-telekom triller-telekom deleted the groupItemCircleDependency branch July 5, 2017 06:25
@kaikreuzer kaikreuzer added this to the 0.9.0 milestone Nov 30, 2017
@kaikreuzer kaikreuzer added the bug label Dec 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants