From 76374e3b89fafa5681a2821ad903f29caf1c1349 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Oct 2010 16:20:25 +0200 Subject: [PATCH] Return an unmodifiable copy of the Sones. --- src/main/java/net/pterodactylus/sone/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } // -- 2.7.4