Skip to content

Commit

Permalink
Fixed Intersection group
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrosan7os committed Oct 23, 2014
1 parent 268cb53 commit 6048401
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static Group of(Group... groups) {
}

public static Group of(Stream<Group> groups) {
return groups.reduce(NobodyGroup.get(), (result, group) -> result.and(group));
return groups.reduce((result, group) -> result.and(group)).orElseGet(NobodyGroup::get);
}

@Override
Expand Down

0 comments on commit 6048401

Please sign in to comment.