Cleanup and idiom in BrowserProvider.java.in

VERIFIED FIXED in Firefox 13

Status

()

P5
normal
VERIFIED FIXED
7 years ago
7 years ago

People

(Reporter: rnewman, Assigned: rnewman)

Tracking

unspecified
Firefox 13
ARM
Android
Points:
---

Firefox Tracking Flags

(firefox13 verified)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

7 years ago
Spotted a niggle with how the projection maps are initialized, and figured I'd do some cleanup.
(Assignee)

Comment 1

7 years ago
Created attachment 600597 [details] [diff] [review]
Proposed patch. v1

* MPL 2.0
* Use least-specific interface for provider column members (which allows for implementation switchout, and discourages perception of mutability)
* Use "create-modify-set" idiom for static initialization, rather than "create-set-modify"
* Use `unmodifiableMap` (alongside `final`) to ensure immutability.
Attachment #600597 - Flags: review?(lucasr.at.mozilla)
(Assignee)

Updated

7 years ago
Depends on: 726382
(Assignee)

Comment 2

7 years ago
Created attachment 600826 [details] [diff] [review]
Rebased. v2

Had to adjust this on top of the GeckoProfile change.
Attachment #600597 - Attachment is obsolete: true
Attachment #600826 - Flags: review?(lucasr.at.mozilla)
Attachment #600597 - Flags: review?(lucasr.at.mozilla)
Comment on attachment 600826 [details] [diff] [review]
Rebased. v2

Review of attachment 600826 [details] [diff] [review]:
-----------------------------------------------------------------

Nice.
Attachment #600826 - Flags: review?(lucasr.at.mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/0f4106533b30
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Verified fixed on:

Firefox 13.0a1 (2012-03-05)
20120305031045
http://hg.mozilla.org/mozilla-central/rev/433cfbd2a0da

--
Device: HTC Desire
OS: Android 2.2
Status: RESOLVED → VERIFIED
status-firefox13: --- → verified
You need to log in before you can comment on or make changes to this bug.