mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1062112: Part 1f: Stop comparing strings with ==. r=nalexander
This commit is contained in:
parent
fc9e87ebfa
commit
47ae70ea5d
@ -783,9 +783,9 @@ public class GeckoSmsManager
|
||||
|
||||
if (mDelivery == null) {
|
||||
restrictions.add("type IN ('" + kSmsTypeSentbox + "', '" + kSmsTypeInbox + "')");
|
||||
} else if (mDelivery == "sent") {
|
||||
} else if (mDelivery.equals("sent")) {
|
||||
restrictions.add("type = " + kSmsTypeSentbox);
|
||||
} else if (mDelivery == "received") {
|
||||
} else if (mDelivery.equals("received")) {
|
||||
restrictions.add("type = " + kSmsTypeInbox);
|
||||
} else {
|
||||
throw new UnexpectedDeliveryStateException();
|
||||
|
Loading…
Reference in New Issue
Block a user