Skip to content

Commit 7970521

Browse files
committed
Deprecate ConvertUtils.ConvertUtils()
1 parent 6815b85 commit 7970521

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
@@ -37,6 +37,7 @@
3737
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ConstructorUtils.ConstructorUtils().</action>
3838
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate LocaleBeanUtils.LocaleBeanUtils().</action>
3939
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate LocaleConvertUtils.LocaleConvertUtils().</action>
40+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ConvertUtils.ConvertUtils().</action>
4041
<!-- ADD -->
4142
<!-- UPDATE -->
4243
<action dev="ggregory" type="update" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 78 to 81.</action>

src/main/java/org/apache/commons/beanutils/ConvertUtils.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,4 +372,14 @@ public static void setDefaultLong(final long newDefaultLong) {
372372
public static void setDefaultShort(final short newDefaultShort) {
373373
ConvertUtilsBean.getInstance().setDefaultShort(newDefaultShort);
374374
}
375+
376+
/**
377+
* Deprecated, all methods are static.
378+
*
379+
* @deprecated Will be private in 2.0.
380+
*/
381+
@Deprecated
382+
public ConvertUtils() {
383+
// empty
384+
}
375385
}

0 commit comments

Comments
 (0)