} else {
monopolize(acl, projectName);
}
}
public static void monopolize(Acl acl, String projectName) {
<BUG>Set<AclEntry> entries = acl.getEntries();
Optional<AclEntry> aclEntry = entries.stream().filter(Preconditions.hasACLPermission(projectName, AclPermissions.READ)).findFirst();
if (aclEntry.isPresent()) {</BUG>
if (aclEntry.get().getPermissions().size() > 1) {
aclEntry.get().removePermission(AclPermissions.READ);

} else {
monopolize(acl, projectName);
}
}
public static void monopolize(Acl acl, String projectName) {
Set<AclEntry> entries = acl.getEntries();
Optional<AclEntry> aclEntry = entries.stream()
.filter(Preconditions.hasACLPermission(projectName, AclPermissions.READ)).findFirst();
if (aclEntry.isPresent()) {
if (aclEntry.get().getPermissions().size() > 1) {
aclEntry.get().removePermission(AclPermissions.READ);
