in owners-common/src/main/java/com/googlesource/gerrit/owners/common/PathOwnersEntry.java [43:69]
public PathOwnersEntry(
String path,
OwnersConfig config,
Accounts accounts,
Set<Account.Id> inheritedOwners,
Set<Account.Id> inheritedReviewers,
Collection<Matcher> inheritedMatchers) {
this.ownersPath = path;
this.owners =
config.getOwners().stream()
.flatMap(o -> accounts.find(o).stream())
.collect(Collectors.toSet());
this.reviewers =
config.getReviewers().stream()
.flatMap(o -> accounts.find(o).stream())
.collect(Collectors.toSet());
this.matchers = config.getMatchers();
if (config.isInherited()) {
this.owners.addAll(inheritedOwners);
this.reviewers.addAll(inheritedReviewers);
for (Matcher matcher : inheritedMatchers) {
addMatcher(matcher);
}
}
this.inherited = config.isInherited();
}