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

Improve Util classes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: clients
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                matzew Matthias We├čendorf
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: