projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add method to update the suggested edition on the insert and request URIs.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Reply.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Reply.java
b/src/main/java/net/pterodactylus/sone/data/Reply.java
index
cfc6d91
..
44aaf89
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Reply.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Reply.java
@@
-152,7
+152,7
@@
public class Reply {
*/
@Override
public int hashCode() {
*/
@Override
public int hashCode() {
- return
post.hashCode() ^ id.hashCode(
);
+ return
sone.hashCode() ^ id.hashCode() ^ post.hashCode() ^ (int) (time >> 32) ^ (int) (time & 0xffffffff
);
}
/**
}
/**
@@
-163,7
+163,8
@@
public class Reply {
if (!(object instanceof Reply)) {
return false;
}
if (!(object instanceof Reply)) {
return false;
}
- return ((Reply) object).post.equals(post) && ((Reply) object).id.equals(id);
+ Reply reply = (Reply) object;
+ return reply.sone.equals(sone) && reply.id.equals(id) && reply.post.equals(post) && (reply.time == time) && reply.text.equals(text);
}
}
}
}