From 385cfac9fa3dcf53ad17857d10937b306ba3602c Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 31 Oct 2013 20:28:40 +0000 Subject: [PATCH] SMACK-459 Make it user proof by returning an unmodifiable set again git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13797 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smackx/ServiceDiscoveryManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java index 2b4f23f5b..a42e5e1bf 100644 --- a/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java +++ b/source/org/jivesoftware/smackx/ServiceDiscoveryManager.java @@ -190,7 +190,7 @@ public class ServiceDiscoveryManager { Set res = new HashSet(identities); // Add the default identity that must exist res.add(defaultIdentity); - return res; + return Collections.unmodifiableSet(res); } /**