projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Increase test coverage.
[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
759a8ba
..
63d4b77
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Post.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Post.java
@@
-45,7
+45,7
@@
public interface Post extends Identified {
@Override
public boolean apply(Post post) {
- return (post
== null) ? false : post.getTime() <= System.currentTimeMillis(
);
+ return (post
!= null) && (post.getTime() <= System.currentTimeMillis()
);
}
};