X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FReply.java;h=69769ebe6850f3669868e9140f1e8b1b21cc8798;hb=50999afc14ced32f8f15b7512a896bbac1e61562;hp=c229d04e999adaa485f4700c1e24049d955b294f;hpb=629ddb006542df2b671e172d8f544815bbab639b;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/Reply.java b/src/main/java/net/pterodactylus/sone/data/Reply.java index c229d04..69769eb 100644 --- a/src/main/java/net/pterodactylus/sone/data/Reply.java +++ b/src/main/java/net/pterodactylus/sone/data/Reply.java @@ -51,7 +51,7 @@ public interface Reply> extends Identified { */ @Override public boolean apply(Reply reply) { - return (reply == null) ? false : reply.getTime() <= System.currentTimeMillis(); + return (reply != null) && (reply.getTime() <= System.currentTimeMillis()); } }; @@ -62,6 +62,7 @@ public interface Reply> extends Identified { * @return The ID of the reply */ public String getId(); + String getInternalId(); /** * Returns the Sone that posted this reply.