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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.0
    • Affects Version/s: 1.1
    • Component/s: None
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved: