[java-opensaml] branch main updated: Optimize by breaking loop on guard value.
Codeberg
noreply at shibboleth.net
Wed Jan 21 16:36:47 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-opensaml.
View the commit online:
https://codeberg.org/Shibboleth/java-opensaml/commit/a362c1cd5fe258617aa57038e562d1ee48bdabec
The following commit(s) were added to refs/heads/main by this push:
new a362c1cd5 Optimize by breaking loop on guard value.
a362c1cd5 is described below
commit a362c1cd5fe258617aa57038e562d1ee48bdabec
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jan 21 11:36:37 2026 -0500
Optimize by breaking loop on guard value.
---
.../opensaml/saml/metadata/resolver/filter/impl/NameIDFormatFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/NameIDFormatFilter.java b/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/NameIDFormatFilter.java
index c0b3d4fcf..3218f2b8d 100644
--- a/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/NameIDFormatFilter.java
+++ b/opensaml-saml-impl/src/main/java/org/opensaml/saml/metadata/resolver/filter/impl/NameIDFormatFilter.java
@@ -184,7 +184,7 @@ public class NameIDFormatFilter extends AbstractMetadataFilter {
for (final String format : formats) {
if (GUARD_VALUE.equals(format)) {
// Skip guard value, only used to implement possibly empty mapping for removal.
- continue;
+ break;
} else if (existingFormats.contains(format)) {
log.debug("Ignoring add of existing NameIDFormat '{}' on EntityDescriptor '{}'", format, entityID);
} else {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list