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

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-xml.git

commit 0df9179103de154fdbcfa86640157054bc241a39
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Aug 28 14:17:28 2026 -0400

    Name like in the JRE example in MethodHandles.Lookup.findStatic().
---
 src/main/java/org/apache/commons/xml/SecureSchemaFactory.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java 
b/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
index d0b22e2..b2317fa 100644
--- a/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
+++ b/src/main/java/org/apache/commons/xml/SecureSchemaFactory.java
@@ -61,7 +61,7 @@ public final class SecureSchemaFactory {
     /** Class name of the JDK's built-in default implementation, the Java 8 
fallback for {@link #newDefaultInstance()}. */
     private static final String JDK_SCHEMA_FACTORY = 
"com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory";
 
-    private static final MethodHandle NEW_DEFAULT_INSTANCE = 
MethodHandleFactory.findStatic(SchemaFactory.class, "newDefaultInstance",
+    private static final MethodHandle MH_newDefaultInstance = 
MethodHandleFactory.findStatic(SchemaFactory.class, "newDefaultInstance",
             MethodType.methodType(SchemaFactory.class));
 
     /**
@@ -92,10 +92,10 @@ static SchemaFactory secure(final SchemaFactory factory) {
      *                                 (for example Android).
      */
     public static SchemaFactory newDefaultInstance() {
-        if (NEW_DEFAULT_INSTANCE != null) {
+        if (MH_newDefaultInstance != null) {
             final SchemaFactory factory;
             try {
-                factory = (SchemaFactory) NEW_DEFAULT_INSTANCE.invokeExact();
+                factory = (SchemaFactory) MH_newDefaultInstance.invokeExact();
             } catch (final SchemaFactoryConfigurationError e) {
                 throw e;
             } catch (final Throwable e) {

Reply via email to