Bug 1081369: Don't compare Integers with ==. r=rnewman

This commit is contained in:
Chris Kitching 2014-10-10 23:17:32 +01:00
parent ef5903ad00
commit bf19d8280c
2 changed files with 2 additions and 2 deletions

View File

@ -1823,7 +1823,7 @@ public class ContactService implements GeckoEventListener {
}
}
private static String getKeyFromMapValue(final HashMap<String, Integer> map, Integer value) {
private static String getKeyFromMapValue(final HashMap<String, Integer> map, int value) {
for (Entry<String, Integer> entry : map.entrySet()) {
if (value == entry.getValue()) {
return entry.getKey();

View File

@ -1078,7 +1078,7 @@ public class LocalBrowserDB {
// After writing the encodedFavicon, ensure that the favicon_id in both the bookmark and
// history tables are also up-to-date.
final Integer id = getIDForFaviconURL(cr, faviconUri);
final int id = getIDForFaviconURL(cr, faviconUri);
if (id == FAVICON_ID_NOT_FOUND) {
return;
}