[java-shib-shared] branch main updated: Code around immutable attribute collection.

Scott Cantor cantor.2 at osu.edu
Fri Apr 21 18:54:39 UTC 2023


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

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

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=66cc99f48a3a0fc625aea45d2b4f0d748dfe0ff4

The following commit(s) were added to refs/heads/main by this push:
     new 66cc99f4 Code around immutable attribute collection.
66cc99f4 is described below

commit 66cc99f48a3a0fc625aea45d2b4f0d748dfe0ff4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Apr 21 14:54:36 2023 -0400

    Code around immutable attribute collection.
---
 .../main/java/net/shibboleth/shared/xml/impl/BasicParserPool.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/shib-support/src/main/java/net/shibboleth/shared/xml/impl/BasicParserPool.java b/shib-support/src/main/java/net/shibboleth/shared/xml/impl/BasicParserPool.java
index 2e7d58a3..8149af2f 100644
--- a/shib-support/src/main/java/net/shibboleth/shared/xml/impl/BasicParserPool.java
+++ b/shib-support/src/main/java/net/shibboleth/shared/xml/impl/BasicParserPool.java
@@ -484,8 +484,10 @@ public class BasicParserPool extends AbstractInitializableComponent implements P
         schema = newSchema;
         if (schema != null) {
             setNamespaceAware(true);
-            builderAttributes.remove("http://java.sun.com/xml/jaxp/properties/schemaSource");
-            builderAttributes.remove("http://java.sun.com/xml/jaxp/properties/schemaLanguage");
+            final Map<String,Object> copy = new HashMap<>(getBuilderAttributes());
+            copy.remove("http://java.sun.com/xml/jaxp/properties/schemaSource");
+            copy.remove("http://java.sun.com/xml/jaxp/properties/schemaLanguage");
+            setBuilderAttributes(copy);
         }
     }
     

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


More information about the commits mailing list