adoroszlai commented on code in PR #6319:
URL: https://github.com/apache/ozone/pull/6319#discussion_r1510742748


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OzoneAcl.java:
##########
@@ -43,65 +47,34 @@
  * <li>world::rw
  * </ul>
  */
-@JsonIgnoreProperties(value = {"aclBitSet"})
 public class OzoneAcl {
 
   private static final String ACL_SCOPE_REGEX = ".*\\[(ACCESS|DEFAULT)\\]";
-  private ACLIdentityType type;
-  private String name;
-  private BitSet aclBitSet;
-  private AclScope aclScope;
+  private final ACLIdentityType type;
+  private final String name;
+  @JsonIgnore
+  private final BitSet aclBitSet;
+  private final AclScope aclScope;
   private static final List<ACLType> EMPTY_LIST = new ArrayList<>(0);
-  public static final BitSet ZERO_BITSET = new BitSet(0);
 
-  /**
-   * Default constructor.
-   */
-  public OzoneAcl() {
+  // TODO use varargs constructor

Review Comment:
   Yes, I wanted to defer this to another PR, because there are 70 callers, so 
it would inflate the patch.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to