Improve synchronization.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 22:42:25 +0000 (23:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 5 Nov 2010 22:42:25 +0000 (23:42 +0100)
src/main/java/net/pterodactylus/sone/data/Sone.java

index 145dca4..4195484 100644 (file)
@@ -405,7 +405,7 @@ public class Sone {
         *
         * @return All replies this Sone made
         */
-       public Set<Reply> getReplies() {
+       public synchronized Set<Reply> getReplies() {
                return Collections.unmodifiableSet(replies);
        }