jvz commented on code in PR #1961:
URL: https://github.com/apache/logging-log4j2/pull/1961#discussion_r1389982882


##########
log4j-api/src/main/java/org/apache/logging/log4j/message/MessageFormatMessage.java:
##########
@@ -124,7 +125,7 @@ public boolean equals(final Object o) {
         if (this == o) {
             return true;
         }
-        if (o == null || getClass() != o.getClass()) {
+        if (!(o instanceof MessageFormatMessage)) {

Review Comment:
   You got an IntelliJ template for this? I'm pretty sure this is generated 
from the default equals and hashCode templates there.



-- 
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]

Reply via email to