projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Load replies and store everything in caches.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
ReplyShell.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/ReplyShell.java
b/src/main/java/net/pterodactylus/sone/data/ReplyShell.java
index
03a4c53
..
afcf295
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/ReplyShell.java
+++ b/
src/main/java/net/pterodactylus/sone/data/ReplyShell.java
@@
-27,6
+27,15
@@
import java.util.UUID;
*/
public class ReplyShell extends Reply implements Shell<Reply> {
*/
public class ReplyShell extends Reply implements Shell<Reply> {
+ /** The shell creator. */
+ public static final ShellCreator<Reply> creator = new ShellCreator<Reply>() {
+
+ @Override
+ public Shell<Reply> createShell() {
+ return new ReplyShell();
+ }
+ };
+
/** The Sone that posted this reply. */
private Sone sone;
/** The Sone that posted this reply. */
private Sone sone;
@@
-172,7
+181,7
@@
public class ReplyShell extends Reply implements Shell<Reply> {
*/
@Override
public boolean canUnshell() {
*/
@Override
public boolean canUnshell() {
- return (sone != null) && (
id != null) && (post != null
) && (time != null) && (text != null);
+ return (sone != null) && (
!(sone instanceof Shell<?>)) && (id != null) && (post != null) && (!(post instanceof Shell<?>)
) && (time != null) && (text != null);
}
/**
}
/**