Re: [PR] Adding hashcode to DOMKeyValue [santuario-xml-sec urity-java]

seanjmullan (via GitHub) <[email protected]>
Newsgroups gmane.text.xml.security.devel
Message-ID <PR_kwDOD7oF986WsRGx-2d0bc859-3dd0-4e9a-b10e-e01244e497f3@gitbox.apache.org>
seanjmullan commented on code in PR #476:
URL: https://github.com/apache/santuario-xml-security-java/pull/476#discussion_r2098527735


##########
src/main/java/org/apache/jcp/xml/dsig/internal/dom/DOMKeyValue.java:
##########
@@ -261,9 +261,26 @@ public boolean equals(Object obj) {
                         && rsaKey.getModulus().equals(otherRSAKey.getModulus());
             } catch (KeyException ke) {
                 // no practical way to determine if the keys are equal
-                return false;
+                return super.equals(obj);

Review Comment:
   Actually, I take back my comment here - returning false as originally is ok (and better) since it already checked if the objects were the same on line 243.



-- 
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.