Closed
Bug 714713
Opened 14 years ago
Closed 14 years ago
Comparison of strings using ==
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox11 fixed, firefox12 fixed)
RESOLVED
FIXED
Firefox 12
People
(Reporter: mfinkle, Assigned: mfinkle)
Details
Attachments
(1 file, 1 obsolete file)
2.01 KB,
patch
|
dougt
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
AFAIK, we can only use String1.equal(String2) to compare strings in Java, unless the strings are constants.
This patch fixes 2 places I found that use ==
Attachment #585352 -
Flags: review?(doug.turner)
Updated•14 years ago
|
Attachment #585352 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Comment 2•14 years ago
|
||
had to backout because of some NullPointerException (mLastUri and mLastTitle can be null)
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d00e560e0dc
I'll get a new patch soon
Updated•14 years ago
|
Attachment #585352 -
Flags: review+ → review-
Assignee | ||
Comment 3•14 years ago
|
||
This patch uses mUri.equals, since mUri is not null. I also dropped the mTitle check since mUri is unique enough.
This patch passed Try server
Assignee: nobody → mark.finkle
Attachment #585352 -
Attachment is obsolete: true
Attachment #585406 -
Flags: review?(doug.turner)
Updated•14 years ago
|
Attachment #585406 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Comment 5•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 12
Assignee | ||
Comment 6•14 years ago
|
||
Comment on attachment 585406 [details] [diff] [review]
patch 2
[Approval Request Comment]
Code cleanup. No risk
Uses the correct method to compare strings. The SnapshotSessionRunnable code could have been being called too often before this patch.
Attachment #585406 -
Flags: approval-mozilla-aurora?
![]() |
||
Comment 7•14 years ago
|
||
Comment on attachment 585406 [details] [diff] [review]
patch 2
[Triage Comment]
Mobile only - approved for Aurora.
Attachment #585406 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 8•14 years ago
|
||
status-firefox11:
--- → fixed
status-firefox12:
--- → fixed
Updated•5 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
•