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:03 UTC

(commons-beanutils) 05/10: Deprecate LocaleBeanUtils.LocaleBeanUtils()

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 c151714f81e1849f7cbbfcd0c4143f2ba68bdb1c
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Thu Jan 30 16:12:40 2025 -0500

    Deprecate LocaleBeanUtils.LocaleBeanUtils()
---
 src/changes/changes.xml                                          | 1 +
 .../org/apache/commons/beanutils/locale/LocaleBeanUtils.java     | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 44ecdd21..21c24bca 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -35,6 +35,7 @@
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Remove -nouses directive from maven-bundle-plugin. OSGi package imports now state 'uses' definitions for package imports, this doesn't affect JPMS (from org.apache.commons:commons-parent:80).</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate BeanUtils.BeanUtils().</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ConstructorUtils.ConstructorUtils().</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate LocaleBeanUtils.LocaleBeanUtils().</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/locale/LocaleBeanUtils.java b/src/main/java/org/apache/commons/beanutils/locale/LocaleBeanUtils.java
index 3a07278e..c2a027b2 100644
--- a/src/main/java/org/apache/commons/beanutils/locale/LocaleBeanUtils.java
+++ b/src/main/java/org/apache/commons/beanutils/locale/LocaleBeanUtils.java
@@ -735,5 +735,14 @@ public class LocaleBeanUtils extends BeanUtils {
 
         LocaleBeanUtilsBean.getLocaleBeanUtilsInstance().setProperty(bean, name, value, pattern);
      }
+
+    /**
+     * Deprecated, all methods are static.
+     *
+     * @deprecated Will be private in 2.0.
+     */
+    public LocaleBeanUtils() {
+        // empty
+    }
 }