Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5772

Improve Util classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • clients
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matzew Matthias Wessendorf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: