Return an unmodifiable copy of the Sones.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:20:25 +0000 (16:20 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Oct 2010 14:20:25 +0000 (16:20 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index ddca79f..31e2680 100644 (file)
@@ -96,7 +96,7 @@ public class Core extends AbstractService {
         * @return The local Sones
         */
        public Set<Sone> localSones() {
-               return localSones;
+               return Collections.unmodifiableSet(localSones);
        }
 
        //