ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1169

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Tags:
      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Thomas Koch
            Reporter:
            Thomas Koch
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development