This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch fix/xpp3dombuilder-system-property
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git

commit 2131f11069b874a03d811de0727bd541c2ffdb8b
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Wed Jul 1 09:20:29 2026 -0400

    Xpp3DomBuilder.createXmlReader: remove thread-unsafe system property 
manipulation
---
 .../org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java    | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java 
b/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java
index a97e408..76775e3 100644
--- a/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java
+++ b/src/main/java/org/apache/maven/shared/utils/xml/Xpp3DomBuilder.java
@@ -116,17 +116,7 @@ public class Xpp3DomBuilder {
             return comSunXmlReader;
         }
 
-        String key = "org.xml.sax.driver";
-        String oldParser = System.getProperty(key);
-        System.clearProperty(key); // There's a "slight" problem with this an 
parallel maven: It does not work ;)
-
-        try {
-            return org.xml.sax.helpers.XMLReaderFactory.createXMLReader();
-        } finally {
-            if (oldParser != null) {
-                System.setProperty(key, oldParser);
-            }
-        }
+        return org.xml.sax.helpers.XMLReaderFactory.createXMLReader();
     }
 
     private static XMLReader instantiate(String s) {

Reply via email to