You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/02/23 14:53:33 UTC

[GitHub] [accumulo] milleruntime opened a new issue #2519: Consistent naming of Utility classes

milleruntime opened a new issue #2519:
URL: https://github.com/apache/accumulo/issues/2519


   It would be nice if all of our static utility classes were named consistently `*Util.java` while other plain old Java Object (POJO) type classes were named differently. Most of them seem to follow this naming convention but not all. We have about 50 utility classes.
   <pre>
   09:49:00 (main) ~/workspace/accumulo$ find core/src/main/java/org/apache/accumulo/core/util/ -name "*Util.java" 
   core/src/main/java/org/apache/accumulo/core/util/ShutdownUtil.java
   core/src/main/java/org/apache/accumulo/core/util/TextUtil.java
   core/src/main/java/org/apache/accumulo/core/util/cleaner/CleanerUtil.java
   core/src/main/java/org/apache/accumulo/core/util/ByteBufferUtil.java
   core/src/main/java/org/apache/accumulo/core/util/AddressUtil.java
   core/src/main/java/org/apache/accumulo/core/util/CompletableFutureUtil.java
   core/src/main/java/org/apache/accumulo/core/util/ThriftMessageUtil.java
   core/src/main/java/org/apache/accumulo/core/util/MonitorUtil.java
   core/src/main/java/org/apache/accumulo/core/util/NumUtil.java
   core/src/main/java/org/apache/accumulo/core/util/compaction/ExternalCompactionUtil.java
   core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
   </pre>
   
   `AdminUtil` is a POJO so should probably be renamed. The advantage of renaming classes is so its clear which classes are static utilities and which are objects that can be shared, instantiated and made private final members of other classes.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [accumulo] ctubbsii commented on issue #2519: Consistent naming of Utility classes

Posted by GitBox <gi...@apache.org>.
ctubbsii commented on issue #2519:
URL: https://github.com/apache/accumulo/issues/2519#issuecomment-1049012780


   Also, I think this might be either too large, or too poorly defined, to be considered a "good first issue".


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [accumulo] ctubbsii commented on issue #2519: Consistent naming of Utility classes

Posted by GitBox <gi...@apache.org>.
ctubbsii commented on issue #2519:
URL: https://github.com/apache/accumulo/issues/2519#issuecomment-1049011103


   I'm generally in favor of consistent naming. However, we have a ton of classes, so naming consistency is going to be hard no matter what conventions we use, because there are always going to be classes that don't fall clearly into one category vs. another, when trying to name them consistently. So, I wouldn't spend too much effort on this. Actually, this one could be very disruptive if too many changes are made, and may not be a substantial net benefit.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org