return false;
return true;
}
public static void share(Acl acl, String projectName) {
Set<AclEntry> entries = acl.getEntries();
<BUG>Optional<AclEntry> entry = entries.stream().filter(Preconditions.hasACLPermission(projectName, null)).findFirst();
if (entry.isPresent()) {</BUG>
entry.get().addPermission(AclPermissions.READ);
} else {
AclEntry aclEntry = new AclEntry();

return false;
return true;
}
public static void share(Acl acl, String projectName) {
Set<AclEntry> entries = acl.getEntries();
Optional<AclEntry> entry = entries.stream().filter(Preconditions.hasACLPermission(projectName, null))
.findFirst();
if (entry.isPresent()) {
entry.get().addPermission(AclPermissions.READ);
} else {
AclEntry aclEntry = new AclEntry();
