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

Using valueOf for base types in getFieldValue

    XMLWordPrintableJSON

Details

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

    Description

      When returning a base type in getFieldValue, the constructor for the base type is called. This causes unnecessary object creation and doesn't take advantage of caching.

      Attachments

        1. THRIFT-997.patch
          0.8 kB
          Takashi Yonebayashi

        Activity

          People

            bryanduxbury Bryan Duxbury
            takashi.yonebayashi Takashi Yonebayashi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: