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:03 UTC
(commons-jxpath) 05/12: Deprecate KeyManagerUtils.KeyManagerUtils()
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 590e2b57302460049e9bd2ef8f7c126805b9c41f
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 16 19:03:17 2025 -0400
Deprecate KeyManagerUtils.KeyManagerUtils()
---
src/changes/changes.xml | 1 +
.../java/org/apache/commons/jxpath/util/KeyManagerUtils.java | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 17caecf..ae4a47a 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -111,6 +111,7 @@ The <action> type attribute can be add,update,fix,remove.
<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>
<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>
<!-- 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/KeyManagerUtils.java b/src/main/java/org/apache/commons/jxpath/util/KeyManagerUtils.java
index 94aee8c..3e832fa 100644
--- a/src/main/java/org/apache/commons/jxpath/util/KeyManagerUtils.java
+++ b/src/main/java/org/apache/commons/jxpath/util/KeyManagerUtils.java
@@ -71,4 +71,14 @@ public class KeyManagerUtils {
public static ExtendedKeyManager getExtendedKeyManager(final KeyManager keyManager) {
return keyManager instanceof ExtendedKeyManager ? (ExtendedKeyManager) keyManager : new SingleNodeExtendedKeyManager(keyManager);
}
+
+ /**
+ * Constructs a new instance.
+ *
+ * @deprecated Will be private in the next major version.
+ */
+ @Deprecated
+ public KeyManagerUtils() {
+ // empty
+ }
}