From: David ‘Bombe’ Roden Date: Thu, 14 Oct 2010 10:17:02 +0000 (+0200) Subject: Return a Set because that’s what it is. X-Git-Tag: 0.1-RC1~409 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cdfca459069691e62cb86e5d2687947e6b8a6edb;p=Sone.git Return a Set because that’s what it is. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Post.java b/src/main/java/net/pterodactylus/sone/data/Post.java index a42cfaa..f7fbcd3 100644 --- a/src/main/java/net/pterodactylus/sone/data/Post.java +++ b/src/main/java/net/pterodactylus/sone/data/Post.java @@ -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 getReplies() { + public Set getReplies() { return Collections.unmodifiableSet(replies); }