From: David ‘Bombe’ Roden Date: Fri, 5 Nov 2010 22:42:25 +0000 (+0100) Subject: Improve synchronization. X-Git-Tag: 0.2-RC1~4 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5295218397ae3b97662bb49b9b9613b1ad3a4199;p=Sone.git Improve synchronization. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Sone.java b/src/main/java/net/pterodactylus/sone/data/Sone.java index 145dca4..4195484 100644 --- a/src/main/java/net/pterodactylus/sone/data/Sone.java +++ b/src/main/java/net/pterodactylus/sone/data/Sone.java @@ -405,7 +405,7 @@ public class Sone { * * @return All replies this Sone made */ - public Set getReplies() { + public synchronized Set getReplies() { return Collections.unmodifiableSet(replies); }