Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1970 Fix Findbugs Warnings
  3. ZOOKEEPER-1981

Fix Dodgy Code Warnings identified by findbugs 2.0.3

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.5.0
    • None
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. ZOOKEEPER-1981.patch
          4 kB
          Hongchao Deng

        Activity

          People

            hdeng Hongchao Deng
            hdeng Hongchao Deng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: