Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2794

generated Java code full of warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.1
    • None
    • Java - Compiler
    • None
    • Ubuntu 14.04

    Description

      The java code generated by thrift is full of warnings about unused imports and fields. With a lot of thrift generated classes, we're getting warnings we care about drowned out in the noise of generated code warnings (approx. 600).

      This small example generates about a half dozen unused imports:
      struct Publisher
      {
      1: optional string id,
      2: optional string name,
      3: optional list<string> cat,
      4: optional string domain
      }

      thrift --gen java -out . publisher.thrift

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cps Kevin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: