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/01/30 21:21:07 UTC
(commons-beanutils) 09/10: Deprecate PropertyUtils.PropertyUtils()
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 1.X
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git
commit b02ed4a820a9adb65b2e7b4fd7ecdd2f1748c8f0
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Thu Jan 30 16:19:54 2025 -0500
Deprecate PropertyUtils.PropertyUtils()
---
src/changes/changes.xml | 1 +
src/main/java/org/apache/commons/beanutils/PropertyUtils.java | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index cce47d3f..50a09044 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -39,6 +39,7 @@
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate LocaleConvertUtils.LocaleConvertUtils().</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ConvertUtils.ConvertUtils().</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate MethodUtils.MethodUtils().</action>
+ <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate PropertyUtils.PropertyUtils().</action>
<!-- ADD -->
<!-- UPDATE -->
<action dev="ggregory" type="update" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 78 to 81.</action>
diff --git a/src/main/java/org/apache/commons/beanutils/PropertyUtils.java b/src/main/java/org/apache/commons/beanutils/PropertyUtils.java
index f6b4bdc5..1cecd9b3 100644
--- a/src/main/java/org/apache/commons/beanutils/PropertyUtils.java
+++ b/src/main/java/org/apache/commons/beanutils/PropertyUtils.java
@@ -866,4 +866,13 @@ public class PropertyUtils {
PropertyUtilsBean.getInstance().setSimpleProperty(bean, name, value);
}
+ /**
+ * Deprecated, all methods are static.
+ *
+ * @deprecated Will be private in 2.0.
+ */
+ @Deprecated
+ public PropertyUtils() {
+ // empty
+ }
}