From c3aad4dec131208b28b3c9426e471fc69e95296f Mon Sep 17 00:00:00 2001 From: Alex Wenckus Date: Wed, 29 Nov 2006 23:22:29 +0000 Subject: [PATCH] Redundant git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6261 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/Roster.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/org/jivesoftware/smack/Roster.java b/source/org/jivesoftware/smack/Roster.java index f0df3247b..26d457647 100644 --- a/source/org/jivesoftware/smack/Roster.java +++ b/source/org/jivesoftware/smack/Roster.java @@ -309,10 +309,10 @@ public class Roster implements ConnectionListener { */ private void setOfflinePresences() { Presence packetUnavailable; - for (String user : new ArrayList(presenceMap.keySet())) { + for (String user : presenceMap.keySet()) { Map resources = presenceMap.get(user); if (resources != null) { - for (String resource : new ArrayList(resources.keySet())) { + for (String resource : resources.keySet()) { packetUnavailable = new Presence(Presence.Type.unavailable); packetUnavailable.setFrom(user + "/" + resource); presencePacket.processPacket(packetUnavailable);