Hongchao Deng created ZOOKEEPER-1981:
----------------------------------------

             Summary: Fix Dodgy code Warnings
                 Key: ZOOKEEPER-1981
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1981
             Project: ZooKeeper
          Issue Type: Sub-task
            Reporter: Hongchao Deng
            Assignee: Hongchao Deng
            Priority: Minor


There are two cases:
1. a duplicate check of null bytes.
2. a lot switch statement without default case.

For the default case, I suggest 
1. throwing an exception as a way to break the program. It's highly unexpected. 
2. or LOG.warn it.

I am doing the second right now to keep the original.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to