From 2ac7816ee8cff5d974ffbc9017681c49772c6fe2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 18 Jan 2013 16:48:42 +0100 Subject: [PATCH] Implement post reply provider interface in core. --- src/main/java/net/pterodactylus/sone/core/Core.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index fe7f6ac..5a26b55 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -101,7 +101,7 @@ import freenet.keys.FreenetURI; * * @author David ‘Bombe’ Roden */ -public class Core extends AbstractService implements SoneProvider, PostProvider { +public class Core extends AbstractService implements SoneProvider, PostProvider, PostReplyProvider { /** The logger. */ private static final Logger logger = Logging.getLogger(Core.class); @@ -574,12 +574,9 @@ public class Core extends AbstractService implements SoneProvider, PostProvider } /** - * Returns the reply with the given ID. - * - * @param replyId - * The ID of the reply to get - * @return The reply, or {@code null} if there is no such reply + * {@inheritDoc} */ + @Override public PostReply getPostReply(String replyId) { synchronized (replies) { return replies.get(replyId); @@ -587,12 +584,9 @@ public class Core extends AbstractService implements SoneProvider, PostProvider } /** - * Returns all replies for the given post, order ascending by time. - * - * @param post - * The post to get all replies for - * @return All replies for the given post + * {@inheritDoc} */ + @Override public List getReplies(Post post) { Set sones = getSones(); List replies = new ArrayList(); -- 2.7.4