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

Generated code should incorporate per-field doc strings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • None
    • Java - Compiler
    • None
    • Patch Available

    Description

      Generated java code for Thrift structs should have doc strings from the .thrift file. The information is all there, it's just not made part of the generated code.

      In the default java generator, the doc strings would go on the field declarations. In the bean style generator, the the doc string would go on both the generated getters and setters.

      Attachments

        1. thrift-179.patch
          3 kB
          Bryan Duxbury
        2. thrift-179-v2.patch
          4 kB
          Bryan Duxbury
        3. thrift-179-v3.patch
          4 kB
          Bryan Duxbury

        Issue Links

          Activity

            People

              bryanduxbury Bryan Duxbury
              bryanduxbury Bryan Duxbury
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: