Details

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

      Description

      Enums are just objects that can have properties. So instead of switching on the code integer, the message can be stored in the enum.

      OK( OK) becomes OK (Ok, "ok")

      getCodeMessage(Code code) just returns code.getMessage()

        Attachments

        1. ZOOKEEPER-1235.patch
          7 kB
          Thomas Koch
        2. ZOOKEEPER-1235.patch
          8 kB
          Michi Mutsuzaki

          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: