Closed
Bug 1413620
Opened 7 years ago
Closed 7 years ago
Fix BoxedPrimitiveConstructor error-prone warnings
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(firefox59 fixed)
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: andrew, Assigned: andrew)
Details
Attachments
(1 file, 1 obsolete file)
1.51 KB,
patch
|
nalexander
:
review+
cnevinchen
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20171101104430 Steps to reproduce: Ran error-prone with BoxedPrimitiveConstructor enabled Actual results: error-prone warns about an unneeded allocation.
Assignee | ||
Comment 1•7 years ago
|
||
The former autoboxes to an Integer and uses the Integer object cache to avoid allocations.
Attachment #8924224 -
Flags: review?(s.kaspari)
Attachment #8924224 -
Flags: review?(nalexander)
Assignee | ||
Comment 2•7 years ago
|
||
The former uses the Integer object cache to avoid allocations.
Attachment #8924229 -
Flags: review?(s.kaspari)
Attachment #8924229 -
Flags: review?(nalexander)
Assignee | ||
Comment 3•7 years ago
|
||
Updated to use Integer.valueOf as suggested by :nalexander in bug 1382049.
Assignee | ||
Updated•7 years ago
|
Attachment #8924224 -
Attachment is obsolete: true
Attachment #8924224 -
Flags: review?(s.kaspari)
Attachment #8924224 -
Flags: review?(nalexander)
Updated•7 years ago
|
Attachment #8924229 -
Flags: review?(s.kaspari) → review?(cnevinchen)
Updated•7 years ago
|
Assignee: nobody → andrew
Updated•7 years ago
|
Attachment #8924229 -
Flags: review?(cnevinchen) → review+
Comment 4•7 years ago
|
||
Andrew: sorry that these tickets are getting the response times they should be. Please don't be discouraged!
Updated•7 years ago
|
Attachment #8924229 -
Flags: review?(nalexander) → review+
Pushed by nbeleuzu@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/255f29fb55ce Prefer Integer.valueOf over new Integer. r=nalexander,nechen
Keywords: checkin-needed
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/255f29fb55ce
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Updated•7 years ago
|
Target Milestone: Firefox 58 → Firefox 59
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•