keith-turner opened a new issue #2040:
URL: https://github.com/apache/accumulo/issues/2040


   Java recently introduced the Set.of() static methods for creating immutable 
sets.  These new methods could be user 
[here](https://github.com/apache/accumulo/blob/9afab2c1b931d100ed6bad5cfe028c28da944427/server/base/src/main/java/org/apache/accumulo/server/constraints/MetadataConstraints.java#L79)
 and 
[here](https://github.com/apache/accumulo/blob/9afab2c1b931d100ed6bad5cfe028c28da944427/server/base/src/main/java/org/apache/accumulo/server/constraints/MetadataConstraints.java#L90)
 instead of `new HashSet<>(Arrays.asList(`. This would shorten the code and 
make the sets immutable, which seems to be the intention of the code.
   
   


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

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


Reply via email to