Return nullable Post instead of Optional
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index af69f98..2746d7b 100644 (file)
@@ -422,11 +422,9 @@ public class Core extends AbstractService implements SoneProvider, PostProvider,
                return database.newPostBuilder();
        }
 
-       /**
-        * {@inheritDoc}
-        */
+       @Nullable
        @Override
-       public Optional<Post> getPost(String postId) {
+       public Post getPost(@Nonnull String postId) {
                return database.getPost(postId);
        }