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 c0c5f786462f9f75c01d0fbf8105f3f339bb61cd
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Aug 30 11:14:24 2026 -0400

    Prevent instantiation of MethodHandleFactory.
---
 src/main/java/org/apache/commons/xml/MethodHandleFactory.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/org/apache/commons/xml/MethodHandleFactory.java 
b/src/main/java/org/apache/commons/xml/MethodHandleFactory.java
index 1468d0c..15df970 100644
--- a/src/main/java/org/apache/commons/xml/MethodHandleFactory.java
+++ b/src/main/java/org/apache/commons/xml/MethodHandleFactory.java
@@ -61,4 +61,8 @@ static <T, E extends Throwable> T invokeExact(final 
ThrowableCallable<T> methodH
             throw new IllegalStateException(e);
         }
     }
+
+    private MethodHandleFactory() {
+        // Prevent instantiation.
+    }
 }

Reply via email to