projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add ID-only constructors.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Post.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Post.java
b/src/main/java/net/pterodactylus/sone/data/Post.java
index
5124b49
..
c8a3229
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Post.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Post.java
@@
-51,6
+51,16
@@
public class Post {
/**
* Creates a new post.
*
+ * @param id
+ * The ID of the post
+ */
+ public Post(String id) {
+ this(id, null, 0, null);
+ }
+
+ /**
+ * Creates a new post.
+ *
* @param sone
* The Sone this post belongs to
* @param text