You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/03/16 23:49:00 UTC
(commons-jxpath) 02/12: Deprecate ClassLoaderUtil.ClassLoaderUtil()
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jxpath.git
commit e413a023e452ec75f138b53f66b8aa9fdc8fde79
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 16 18:52:52 2025 -0400
Deprecate ClassLoaderUtil.ClassLoaderUtil()
---
src/changes/changes.xml | 1 +
.../java/org/apache/commons/jxpath/util/ClassLoaderUtil.java | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 5b8b3f5..950928c 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -109,6 +109,7 @@ The <action> type attribute can be add,update,fix,remove.
<action dev="ggregory" type="fix" due-to="Gary Gregory">Use generics internally.</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">NodeSet.getPointers() is now typed with generics.</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">ServletContextHandler.collectPropertyNames(HashSet, Object) is now typed with generics.</action>
+ <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate ClassLoaderUtil.ClassLoaderUtil().</action>
<!-- ADD -->
<action issue="JXPATH-123" dev="mbenson" type="add">
XPath function "ends-with" is not implemented (although "starts-with" is).
diff --git a/src/main/java/org/apache/commons/jxpath/util/ClassLoaderUtil.java b/src/main/java/org/apache/commons/jxpath/util/ClassLoaderUtil.java
index 740fa44..aa8400e 100644
--- a/src/main/java/org/apache/commons/jxpath/util/ClassLoaderUtil.java
+++ b/src/main/java/org/apache/commons/jxpath/util/ClassLoaderUtil.java
@@ -151,4 +151,14 @@ public class ClassLoaderUtil {
}
return className;
}
+
+ /**
+ * Constructs a new instance.
+ *
+ * @deprecated Constructor will be private in the next major version.
+ */
+ @Deprecated
+ public ClassLoaderUtil() {
+ // empty
+ }
}