From cdfca459069691e62cb86e5d2687947e6b8a6edb Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 14 Oct 2010 12:17:02 +0200 Subject: [PATCH] =?utf8?q?Return=20a=20Set=20because=20that=E2=80=99s=20wh?= =?utf8?q?at=20it=20is.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/data/Post.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.7.4