[java-opensaml] branch main updated: Fix equals() override on lang comparison.

Scott Cantor cantor.2 at osu.edu
Wed Apr 5 17:48:06 UTC 2023


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=00c708fdffc5a86fc8cdf968513ea9d52b858859

The following commit(s) were added to refs/heads/main by this push:
     new 00c708fdf Fix equals() override on lang comparison.
00c708fdf is described below

commit 00c708fdffc5a86fc8cdf968513ea9d52b858859
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Apr 5 13:48:04 2023 -0400

    Fix equals() override on lang comparison.
---
 .../main/java/org/opensaml/saml/ext/saml2mdui/impl/KeywordsImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opensaml-saml-impl/src/main/java/org/opensaml/saml/ext/saml2mdui/impl/KeywordsImpl.java b/opensaml-saml-impl/src/main/java/org/opensaml/saml/ext/saml2mdui/impl/KeywordsImpl.java
index 7dc6ac90a..e8606ada9 100644
--- a/opensaml-saml-impl/src/main/java/org/opensaml/saml/ext/saml2mdui/impl/KeywordsImpl.java
+++ b/opensaml-saml-impl/src/main/java/org/opensaml/saml/ext/saml2mdui/impl/KeywordsImpl.java
@@ -100,7 +100,7 @@ public class KeywordsImpl extends AbstractXMLObject implements Keywords {
 
         if (lang != null && !lang.equals(other.getXMLLang())) {
             return false;
-        } else if (other.getXMLLang() != null) {
+        } else if (lang == null && other.getXMLLang() != null) {
             return false;
         }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list