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

Why thrift don't use wrapped class for optional fields ?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • 0.9
    • Java - Library
    • None
    • any

    Description

      JAVA only:

      in generated sources I see follow:
      public double size; // optional

      so I need use two methods : double getSize() and boolean isSetSize() for use it.

      I guess you can change optional params on standard wrapped class: int -> Integer, double -> Double
      if value was uncheck -> null. one method one field, simple and easy

      Attachments

        Activity

          People

            jfarrell Jake Farrell
            imysak Ihor Mysak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: