chibenwa commented on code in PR #1786:
URL: https://github.com/apache/james-project/pull/1786#discussion_r1387634486
##########
mailbox/api/src/main/java/org/apache/james/mailbox/model/Mailbox.java:
##########
@@ -138,7 +138,9 @@ public boolean isChildOf(Mailbox potentialParent,
MailboxSession mailboxSession)
public boolean equals(Object obj) {
if (obj instanceof Mailbox) {
Mailbox o = (Mailbox)obj;
- return Objects.equals(id, o.getMailboxId());
+ return Objects.equals(id, o.getMailboxId())
+ && Objects.equals(path, o.path)
+ && Objects.equals(uidValidity, o.uidValidity);
Review Comment:
Danger zone.
Please do not alter core POJOs, unless you really know what you do.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]