1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-23 06:42:05 +01:00

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
This commit is contained in:
Florian Schmaus 2013-10-31 20:28:40 +00:00 committed by flow
parent 6fa2cbee68
commit 385cfac9fa

View file

@ -190,7 +190,7 @@ public class ServiceDiscoveryManager {
Set<Identity> res = new HashSet<Identity>(identities); Set<Identity> res = new HashSet<Identity>(identities);
// Add the default identity that must exist // Add the default identity that must exist
res.add(defaultIdentity); res.add(defaultIdentity);
return res; return Collections.unmodifiableSet(res);
} }
/** /**