Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1169

Fix compiler (eclipse) warnings in (generated) jute code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.4.0
    • None
    • None
    • Reviewed
    • cleanup, cleancode

    Description

      Fixes for compiled jute parser:

      • missing generic types
      • added @SuppressWarnings("unused") because javacc adds a dead throws clause at the
        end of functions.

      Fixes for code compiled by jute compiler:

      • remove import java.util.* and use full ref to java.util.Arrays

      One warning fixed in non-compiled code:
      src/java/main/org/apache/jute/compiler/JRecord.java

      Rationale: The warnings in your IDE (eclipse) get useless if there are tons of them. This patch reduces many of them. Another issue with patch will reduce them to 8.

      Attachments

        1. ZOOKEEPER-1169.patch
          5 kB
          Thomas Koch

        Activity

          People

            thkoch Thomas Koch
            thkoch Thomas Koch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: