Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.6.0, 3.5.5
    • Component/s: None
    • Labels:
      None

      Description

      There are two places where large switch statements do nothing else to get the correct Record class accorging to a txn type. Provided a static map in SerializeUtils from type to Class<? extends Record> and a method to retrieve a new txn Record instance for a type.

      Code size reduced by 28 lines.

        Attachments

        1. ZOOKEEPER-1259.patch
          8 kB
          Thomas Koch
        2. ZOOKEEPER-1259.patch
          8 kB
          Thomas Koch
        3. ZOOKEEPER-1259.patch
          11 kB
          Thomas Koch
        4. ZOOKEEPER-1259.patch
          11 kB
          Thomas Koch

          Issue Links

            Activity

              People

              • Assignee:
                thkoch Thomas Koch
                Reporter:
                thkoch Thomas Koch
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: