keith-turner commented on code in PR #3746:
URL: https://github.com/apache/accumulo/pull/3746#discussion_r1668999161


##########
core/src/main/java/org/apache/accumulo/core/security/ColumnVisibility.java:
##########
@@ -496,13 +510,34 @@ public ColumnVisibility(Text expression) {
   }
 
   /**
-   * Creates a column visibility for a Mutation from a string already encoded 
in UTF-8 bytes.
+   * Creates a column visibility for a Mutation from bytes already encoded in 
UTF-8.
    *
    * @param expression visibility expression, encoded as UTF-8 bytes
    * @see #ColumnVisibility(String)
    */
   public ColumnVisibility(byte[] expression) {
-    validate(expression);
+    this.expression = expression;

Review Comment:
   Made an upstream optimization for empty string, it was doing some object 
allocation.  Opened apache/accumulo-access#76



-- 
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]

Reply via email to