Store posts in a set, not in a list!
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 07:58:08 +0000 (09:58 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 18 Oct 2010 07:58:08 +0000 (09:58 +0200)
src/main/java/net/pterodactylus/sone/data/Sone.java

index 2efb90d..a387545 100644 (file)
@@ -67,7 +67,7 @@ public class Sone {
        private final Set<Sone> friendSones = new HashSet<Sone>();
 
        /** All posts. */
        private final Set<Sone> friendSones = new HashSet<Sone>();
 
        /** All posts. */
-       private final List<Post> posts = new ArrayList<Post>();
+       private final Set<Post> posts = new HashSet<Post>();
 
        /** All replies. */
        private final Set<Reply> replies = new HashSet<Reply>();
 
        /** All replies. */
        private final Set<Reply> replies = new HashSet<Reply>();