From a5e903790793152bc364e8d92c378c7c84aa2355 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 1 Dec 2015 18:08:54 +0100 Subject: [PATCH] Use contains(BareJid) instead of entries.containsKey in Roster --- .../src/main/java/org/jivesoftware/smack/roster/Roster.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java index ca2fb0389..3c5639d03 100644 --- a/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java +++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/Roster.java @@ -1318,7 +1318,7 @@ public final class Roster extends Manager { // Add the new presence, using the resources as a key. userPresences.put(fromResource, presence); // If the user is in the roster, fire an event. - if (entries.containsKey(key)) { + if (contains(key)) { fireRosterPresenceEvent(presence); } break; @@ -1339,7 +1339,7 @@ public final class Roster extends Manager { userPresences.put(fromResource, presence); } // If the user is in the roster, fire an event. - if (entries.containsKey(key)) { + if (contains(key)) { fireRosterPresenceEvent(presence); } break; @@ -1359,7 +1359,7 @@ public final class Roster extends Manager { // Set the new presence using the empty resource as a key. userPresences.put(Resourcepart.EMPTY, presence); // If the user is in the roster, fire an event. - if (entries.containsKey(key)) { + if (contains(key)) { fireRosterPresenceEvent(presence); } break;