Return a Set because that’s what it is.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 10:17:02 +0000 (12:17 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 10:17:02 +0000 (12:17 +0200)
src/main/java/net/pterodactylus/sone/data/Post.java

index a42cfaa..f7fbcd3 100644 (file)
@@ -17,7 +17,6 @@
 
 package net.pterodactylus.sone.data;
 
-import java.util.Collection;
 import java.util.Collections;
 import java.util.HashSet;
 import java.util.Set;
@@ -136,7 +135,7 @@ public class Post {
         *
         * @return All replies to this post
         */
-       public Collection<Reply> getReplies() {
+       public Set<Reply> getReplies() {
                return Collections.unmodifiableSet(replies);
        }