You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Thomas Koch (JIRA)" <ji...@apache.org> on 2011/09/22 12:31:26 UTC

[jira] [Updated] (ZOOKEEPER-1199) Make OpCode an enum

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Koch updated ZOOKEEPER-1199:
-----------------------------------

    Attachment: ZOOKEEPER-1199.patch

> Make OpCode an enum
> -------------------
>
>                 Key: ZOOKEEPER-1199
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1199
>             Project: ZooKeeper
>          Issue Type: Sub-task
>            Reporter: Thomas Koch
>            Assignee: Thomas Koch
>         Attachments: ZOOKEEPER-1199.patch
>
>
> ZooDefs.OpCode is an interface with integer constants. Changing this to an enum provides safety. See "Item 30: Use enums instead of int constants" in Effective Java.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira