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 393cd863892ec0600a608a34d96bd0335459a73e Author: Gary D. Gregory <[email protected]> AuthorDate: Sun Mar 16 19:04:20 2025 -0400 Deprecate TypeUtils.TypeUtils() --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/jxpath/util/TypeUtils.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ae4a47a..8323645 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -112,6 +112,7 @@ The <action> type attribute can be add,update,fix,remove. <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate ClassLoaderUtil.ClassLoaderUtil().</action> <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate MethodLookupUtils.MethodLookupUtils().</action> <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate KeyManagerUtils.KeyManagerUtils().</action> + <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate TypeUtils.TypeUtils().</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/TypeUtils.java b/src/main/java/org/apache/commons/jxpath/util/TypeUtils.java index 89f8605..eb27257 100644 --- a/src/main/java/org/apache/commons/jxpath/util/TypeUtils.java +++ b/src/main/java/org/apache/commons/jxpath/util/TypeUtils.java @@ -90,4 +90,14 @@ public class TypeUtils { public static Class wrapPrimitive(final Class p) { return p.isPrimitive() ? (Class) PRIMITIVE_TYPE_MAP.get(p) : p; } + + /** + * Constructs a new instance. + * + * @deprecated Will be private in the next major version. + */ + @Deprecated + public TypeUtils() { + // empty + } }
