mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1081369: Don't compare Integers with ==. r=rnewman
This commit is contained in:
parent
ef5903ad00
commit
bf19d8280c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user