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

This commit is contained in:
Chris Kitching 2014-10-10 23:17:32 +01:00
Родитель 214c5a4c82
Коммит 50f7ff07dd
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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();

Просмотреть файл

@ -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;
}