You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/03/13 10:02:00 UTC

[jira] [Updated] (HDDS-10515) Reduce OzoneAcl constructor count

     [ https://issues.apache.org/jira/browse/HDDS-10515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Attila Doroszlai updated HDDS-10515:
------------------------------------
    Priority: Minor  (was: Major)

> Reduce OzoneAcl constructor count
> ---------------------------------
>
>                 Key: HDDS-10515
>                 URL: https://issues.apache.org/jira/browse/HDDS-10515
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Minor
>
> Unify {{OzoneAcl}} constructors, using the varargs one:
> {code}
>   public OzoneAcl(ACLIdentityType type, String name, AclScope scope, ACLType... acls) {
>     this(type, name, scope, bitSetOf(acls));
>   }
> {code}
> The one with single {{ACLType}} can simply be replaced:
> {code}
>   public OzoneAcl(ACLIdentityType type, String name, ACLType acl, AclScope scope) {
>     this(type, name, scope, bitSetOf(acl));
>   }
> {code}
> Callers of the one with {{BitSet}} can be changed to work with {{EnumSet}} of {{ACLType}} instead of bits:
> {code}
>   public OzoneAcl(ACLIdentityType type, String name, BitSet acls, AclScope scope) {
>     this(type, name, scope, validateAndCopy(acls));
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org