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:06 UTC
(commons-beanutils) 08/10: Deprecate MethodUtils.MethodUtils()
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 116851bef7cbec7a107924b4c3be3c9e43c91b34
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Thu Jan 30 16:18:51 2025 -0500
Deprecate MethodUtils.MethodUtils()
---
src/changes/changes.xml | 1 +
src/main/java/org/apache/commons/beanutils/MethodUtils.java | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 34661b74..cce47d3f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -38,6 +38,7 @@
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate LocaleBeanUtils.LocaleBeanUtils().</action>
<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>
<!-- 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/MethodUtils.java b/src/main/java/org/apache/commons/beanutils/MethodUtils.java
index 2522533c..c69189b0 100644
--- a/src/main/java/org/apache/commons/beanutils/MethodUtils.java
+++ b/src/main/java/org/apache/commons/beanutils/MethodUtils.java
@@ -1333,4 +1333,14 @@ public class MethodUtils {
}
return clazz;
}
+
+ /**
+ * Deprecated, all methods are static.
+ *
+ * @deprecated Will be private in 2.0.
+ */
+ @Deprecated
+ public MethodUtils() {
+ // empty
+ }
}