projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'da609f721e54691f27113e877a19637bd332abc3' into less-critical
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
PostProvider.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/PostProvider.java
b/src/main/java/net/pterodactylus/sone/core/PostProvider.java
index
6e46326
..
e7167cd
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/PostProvider.java
+++ b/
src/main/java/net/pterodactylus/sone/core/PostProvider.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - PostProvider.java - Copyright © 2011–201
2
David Roden
+ * Sone - PostProvider.java - Copyright © 2011–201
3
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
*
* 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
@@
-27,17
+27,12
@@
import net.pterodactylus.sone.data.Post;
public interface PostProvider {
/**
public interface PostProvider {
/**
- * Returns the post with the given ID, if it exists. If it does not exist
- * and {@code create} is {@code false}, {@code null} is returned; otherwise,
- * a new post with the given ID is created and returned.
+ * Returns the post with the given ID.
*
* @param postId
* The ID of the post to return
*
* @param postId
* The ID of the post to return
- * @param create
- * {@code true} to create a new post if no post with the given ID
- * exists, {@code false} to return {@code null} instead
* @return The post with the given ID, or {@code null}
*/
* @return The post with the given ID, or {@code null}
*/
- public Post getPost(String postId
, boolean create
);
+ public Post getPost(String postId);
}
}