Skip to content

Commit b02ed4a

Browse files
committed
Deprecate PropertyUtils.PropertyUtils()
1 parent 116851b commit b02ed4a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate LocaleConvertUtils.LocaleConvertUtils().</action>
4040
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ConvertUtils.ConvertUtils().</action>
4141
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate MethodUtils.MethodUtils().</action>
42+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate PropertyUtils.PropertyUtils().</action>
4243
<!-- ADD -->
4344
<!-- UPDATE -->
4445
<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/PropertyUtils.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,4 +866,13 @@ public static void setSimpleProperty(final Object bean,
866866
PropertyUtilsBean.getInstance().setSimpleProperty(bean, name, value);
867867
}
868868

869+
/**
870+
* Deprecated, all methods are static.
871+
*
872+
* @deprecated Will be private in 2.0.
873+
*/
874+
@Deprecated
875+
public PropertyUtils() {
876+
// empty
877+
}
869878
}

0 commit comments

Comments
 (0)