You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jason Gustafson (JIRA)" <ji...@apache.org> on 2017/12/22 19:49:00 UTC
[jira] [Resolved] (KAFKA-5772) Improve Util classes
[ https://issues.apache.org/jira/browse/KAFKA-5772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Gustafson resolved KAFKA-5772.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.1.0
> Improve Util classes
> --------------------
>
> Key: KAFKA-5772
> URL: https://issues.apache.org/jira/browse/KAFKA-5772
> Project: Kafka
> Issue Type: Improvement
> Components: clients
> Reporter: Matthias Weßendorf
> Fix For: 1.1.0
>
>
> Utils with static methods should not be instantiated, hence we should improve them by marking the classes final and adding a private constructor as well.
> In addition this is consistent w/ a few of the existing Util classes, such as ByteUtils, see:
> https://github.com/apache/kafka/blob/d345d53e4e5e4f74707e2521aa635b93ba3f1e7b/clients/src/main/java/org/apache/kafka/common/utils/ByteUtils.java#L29-L31
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)