From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 14:20:25 +0000 (+0200) Subject: Return an unmodifiable copy of the Sones. X-Git-Tag: 0.1-RC1~464 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=76374e3b89fafa5681a2821ad903f29caf1c1349;p=Sone.git Return an unmodifiable copy of the Sones. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index ddca79f..31e2680 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -96,7 +96,7 @@ public class Core extends AbstractService { * @return The local Sones */ public Set localSones() { - return localSones; + return Collections.unmodifiableSet(localSones); } //