зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1081369: Don't compare Integers with ==. r=rnewman
This commit is contained in:
Родитель
214c5a4c82
Коммит
50f7ff07dd
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче