From: David ‘Bombe’ Roden Date: Sun, 7 Dec 2014 10:35:41 +0000 (+0100) Subject: Remove unnecessary synchronization. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=be9ad815f992468e6501384c7d3d95f7094c7b18;p=Sone.git Remove unnecessary synchronization. --- diff --git a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java index 5d8f1c4..142f4a2 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java @@ -357,9 +357,7 @@ public class SoneImpl implements LocalSone { * @return All posts of this Sone */ public List getPosts() { - synchronized (this) { - return FluentIterable.from(posts).toSortedList(Post.TIME_COMPARATOR); - } + return FluentIterable.from(posts).toSortedList(Post.TIME_COMPARATOR); } /**