Remove unnecessary synchronization.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 7 Dec 2014 10:35:41 +0000 (11:35 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 7 Dec 2014 10:35:41 +0000 (11:35 +0100)
src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java

index 5d8f1c4..142f4a2 100644 (file)
@@ -357,9 +357,7 @@ public class SoneImpl implements LocalSone {
         * @return All posts of this Sone
         */
        public List<Post> getPosts() {
-               synchronized (this) {
-                       return FluentIterable.from(posts).toSortedList(Post.TIME_COMPARATOR);
-               }
+               return FluentIterable.from(posts).toSortedList(Post.TIME_COMPARATOR);
        }
 
        /**