Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13472

Replace primitive wrapper's valueOf method with parse* method to avoid unnecessary boxing/unboxing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • Hive
    • None

    Description

      There are lots of primitive wrapper's valueOf method which should be replaced with parseXX method.

      For example, Integer.valueOf(String) returns Integer type but Integer.parseInt(String) returns primitive int type so we can avoid unnecessary boxing/unboxing by replacing some of them.

      Attachments

        1. HIVE-13472.0.patch
          56 kB
          Kousuke Saruta

        Activity

          People

            sarutak Kousuke Saruta
            sarutak Kousuke Saruta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: