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

remove extra methods generated for collections

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Invalid
    • 0.1
    • 0.2
    • Java - Compiler
    • None
    • Patch Available

    Description

      For some reason, the java generator produces a bunch of extra methods whenever you have a field of a collection type. For instance if you have a field called "my_list", then you will get a "get_my_list_size()" method in addition to the standard getter and setter.

      Personally I find these extra methods redundant, since all they save you is a pair of parentheses. I'd prefer to just get rid of them. Does anyone out there like or use these methods?

      Attachments

        1. thrift-477.patch
          3 kB
          Bryan Duxbury

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: