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

Increase Immutability of ClusterConfigState

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: None
    • Labels:
      None

      Description

      The class claims that it is immutable, but there are some mutable features of this class.

       

      Increase the immutability of it and add a little cleanup:

      • Pre-initialize size of ArrayList
      • Remove superfluous syntax
      • Use ArrayList instead of LinkedList since the list is created once

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                belugabehr David Mollitor
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: