Skip to content

Commit 393cd86

Browse files
committed
Deprecate TypeUtils.TypeUtils()
1 parent 590e2b5 commit 393cd86

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
@@ -112,6 +112,7 @@ The <action> type attribute can be add,update,fix,remove.
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>
114114
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate KeyManagerUtils.KeyManagerUtils().</action>
115+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate TypeUtils.TypeUtils().</action>
115116
<!-- ADD -->
116117
<action issue="JXPATH-123" dev="mbenson" type="add">
117118
XPath function "ends-with" is not implemented (although "starts-with" is).

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,14 @@ public static synchronized void setTypeConverter(final TypeConverter converter)
9090
public static Class wrapPrimitive(final Class p) {
9191
return p.isPrimitive() ? (Class) PRIMITIVE_TYPE_MAP.get(p) : p;
9292
}
93+
94+
/**
95+
* Constructs a new instance.
96+
*
97+
* @deprecated Will be private in the next major version.
98+
*/
99+
@Deprecated
100+
public TypeUtils() {
101+
// empty
102+
}
93103
}

0 commit comments

Comments
 (0)