From: David ‘Bombe’ Roden Date: Tue, 15 Jan 2013 20:22:28 +0000 (+0100) Subject: Revert "Implement post reply provider interface in Core." X-Git-Tag: 0.8.5^2~3^2~141 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=73ca2937b9fe41f637e22d721f54a8cefb75b580;p=Sone.git Revert "Implement post reply provider interface in Core." This reverts commit 49f2c213001e91ccdfb51158e15b059d333438b7. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index e885bb5..b25d8e3 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -73,7 +73,7 @@ import freenet.keys.FreenetURI; * * @author David ‘Bombe’ Roden */ -public class Core extends AbstractService implements IdentityListener, UpdateListener, SoneProvider, PostProvider, SoneInsertListener, ImageInsertListener, PostReplyProvider { +public class Core extends AbstractService implements IdentityListener, UpdateListener, SoneProvider, PostProvider, SoneInsertListener, ImageInsertListener { /** The logger. */ private static final Logger logger = Logging.getLogger(Core.class); @@ -608,9 +608,17 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis } /** - * {@inheritDoc} + * Returns the reply with the given ID. If there is no reply with the given + * ID yet, a new one is created, unless {@code create} is false in which + * case {@code null} is returned. + * + * @param replyId + * The ID of the reply to get + * @param create + * {@code true} to always return a {@link Reply}, {@code false} + * to return {@code null} if no reply can be found + * @return The reply, or {@code null} if there is no such reply */ - @Override public PostReply getPostReply(String replyId, boolean create) { synchronized (replies) { PostReply reply = replies.get(replyId);