[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 |
| Comment by Eliot Horowitz (Inactive) [ 28/Dec/09 ] |
|
Can you change it not to remove the import .* ? |