projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move exception to correct class.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
impl
/
AbstractPostBuilder.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java
b/src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java
index
342ea5c
..
3a56dc9
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java
+++ b/
src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java
@@
-82,7
+82,7
@@
public abstract class AbstractPostBuilder implements PostBuilder {
this.currentTime = false;
this.time = post.getTime();
this.text = post.getText();
this.currentTime = false;
this.time = post.getTime();
this.text = post.getText();
- this.recipientId =
(post.getRecipient() != null) ? post.getRecipient().getId() : null
;
+ this.recipientId =
post.getRecipientId().orNull()
;
return this;
}
return this;
}