Remove unused classes
[Sone.git] / src / main / java / net / pterodactylus / sone / data / impl / PostReplyImpl.java
index 5084c1c..33b00ff 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - PostReplyImpl.java - Copyright © 2010–2016 David Roden
+ * Sone - PostReplyImpl.java - Copyright © 2010–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
@@ -17,6 +17,8 @@
 
 package net.pterodactylus.sone.data.impl;
 
+import static com.google.common.base.Optional.fromNullable;
+
 import net.pterodactylus.sone.data.Post;
 import net.pterodactylus.sone.data.PostReply;
 import net.pterodactylus.sone.database.PostProvider;
@@ -26,8 +28,6 @@ import com.google.common.base.Optional;
 
 /**
  * Simple {@link PostReply} implementation.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
 public class PostReplyImpl extends ReplyImpl<PostReply> implements PostReply {
 
@@ -78,7 +78,7 @@ public class PostReplyImpl extends ReplyImpl<PostReply> implements PostReply {
         */
        @Override
        public Optional<Post> getPost() {
-               return postProvider.getPost(postId);
+               return fromNullable(postProvider.getPost(postId));
        }
 
 }