From: David ‘Bombe’ Roden Date: Thu, 4 Jul 2013 17:29:53 +0000 (+0200) Subject: Return a copy of the values. X-Git-Tag: 0.8.6^2~11 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=78e60dc26c8ad078237ee2e2f763e53fd84a3764;p=Sone.git Return a copy of the values. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 7232b72..827729c 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -334,7 +334,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, @Override public Collection getSones() { synchronized (sones) { - return Collections.unmodifiableCollection(sones.values()); + return ImmutableSet.copyOf(sones.values()); } }