Skip to content

Commit 590e2b5

Browse files
committed
Deprecate KeyManagerUtils.KeyManagerUtils()
1 parent 459bf39 commit 590e2b5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ The <action> type attribute can be add,update,fix,remove.
111111
<action dev="ggregory" type="fix" due-to="Gary Gregory">ServletContextHandler.collectPropertyNames(HashSet, Object) is now typed with generics.</action>
112112
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate ClassLoaderUtil.ClassLoaderUtil().</action>
113113
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate MethodLookupUtils.MethodLookupUtils().</action>
114+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate KeyManagerUtils.KeyManagerUtils().</action>
114115
<!-- ADD -->
115116
<action issue="JXPATH-123" dev="mbenson" type="add">
116117
XPath function "ends-with" is not implemented (although "starts-with" is).

src/main/java/org/apache/commons/jxpath/util/KeyManagerUtils.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,14 @@ public Pointer getPointerByKey(final JXPathContext context, final String keyName
7171
public static ExtendedKeyManager getExtendedKeyManager(final KeyManager keyManager) {
7272
return keyManager instanceof ExtendedKeyManager ? (ExtendedKeyManager) keyManager : new SingleNodeExtendedKeyManager(keyManager);
7373
}
74+
75+
/**
76+
* Constructs a new instance.
77+
*
78+
* @deprecated Will be private in the next major version.
79+
*/
80+
@Deprecated
81+
public KeyManagerUtils() {
82+
// empty
83+
}
7484
}

0 commit comments

Comments
 (0)