This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git

commit 5e3d4822a2532e50ce669a74be346698708eac64
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Sep 20 20:15:38 2024 -0400

    No need to set to the default value
---
 .../org/apache/commons/beanutils2/locale/LocaleConvertUtilsBean.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsBean.java
 
b/src/main/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsBean.java
index 216ea546..ee6253ab 100644
--- 
a/src/main/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsBean.java
+++ 
b/src/main/java/org/apache/commons/beanutils2/locale/LocaleConvertUtilsBean.java
@@ -106,13 +106,13 @@ public class LocaleConvertUtilsBean {
      * <li>value = map of converters for the certain locale.</li>
      * <ul>
      */
-    private final WeakFastHashMap<Locale, Map<Class<?>, LocaleConverter<?>>> 
mapConverters = new WeakFastHashMap<>();
+    private final WeakFastHashMap<Locale, Map<Class<?>, LocaleConverter<?>>> 
mapConverters;
 
     /**
      * Makes the state by default (deregisters all converters for all locales) 
and then registers default locale converters.
      */
     public LocaleConvertUtilsBean() {
-        mapConverters.setFast(false);
+        mapConverters = new WeakFastHashMap<>();
         deregister();
         mapConverters.setFast(true);
     }

Reply via email to