From: David ‘Bombe’ Roden Date: Fri, 18 Jan 2013 15:48:42 +0000 (+0100) Subject: Implement post reply provider interface in core. X-Git-Tag: 0.8.5^2~3^2~45^2~14 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2ac7816ee8cff5d974ffbc9017681c49772c6fe2;p=Sone.git Implement post reply provider interface in core. --- 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();