[JAVA-70] [patch] remove unnecessary (and wasteful) boxing of primitives Created: 27/Dec/09  Updated: 29/Oct/10  Resolved: 18/May/10

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 2.0

Type: Improvement Priority: Trivial - P5
Reporter: Dave Brosius Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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



 Comments   
Comment by auto [ 18/May/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: boxing, cleaning JAVA-70
http://github.com/mongodb/mongo-java-driver/commit/3d3323dcc9aa99df41c9707af177710a99409844

Comment by Eliot Horowitz (Inactive) [ 28/Dec/09 ]

Can you change it not to remove the import .* ?

Generated at Thu Feb 08 08:51:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.