Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-70

[patch] remove unnecessary (and wasteful) boxing of primitives

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 2.0
    • 1.1
    • None
    • None

    Description

      Code does

      Double.parseDouble(s);

      when a Double is desired.

      Double.valueOf(s) does that, parseDouble does not - it generates a double.

      Other similar changes for other primitive types.

      git clone here

      git://github.com/mebigfatguy/mongo-java-driver.git

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            mebigfatguy Dave Brosius
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: