/*
- * Sone - MemoryPostReplyBuilder.java - Copyright © 2013–2015 David Roden
+ * Sone - MemoryPostReplyBuilder.java - Copyright © 2013–2019 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/**
* {@link PostReplyBuilder} implementation that creates {@link MemoryPostReply}
* objects.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
class MemoryPostReplyBuilder extends AbstractPostReplyBuilder {
public PostReply build() throws IllegalStateException {
validate();
- PostReply postReply = new MemoryPostReply(database, soneProvider, randomId ? UUID.randomUUID().toString() : id, senderId, currentTime ? System.currentTimeMillis() : time, text, postId);
- postReply.setKnown(database.isPostReplyKnown(postReply));
- return postReply;
+ return new MemoryPostReply(database, soneProvider, randomId ? UUID.randomUUID().toString() : id, senderId, currentTime ? System.currentTimeMillis() : time, text, postId);
}
}