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 236a2d365902c6b1e20bed8b3e4e935d00921005 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jan 31 16:24:43 2025 -0500 The class org.apache.commons.beanutils2.ConvertUtils is now final (the class only contains static methods) The constructor org.apache.commons.beanutils2.ConvertUtils is now private (the class only contains static methods) --- src/changes/changes.xml | 2 ++ src/main/java/org/apache/commons/beanutils2/ConvertUtils.java | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index b426f525..60b6fb5b 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -39,6 +39,8 @@ <action type="fix" dev="ggregory" due-to="Gary Gregory">The constructor org.apache.commons.beanutils2.locale.LocaleBeanUtils is now private (the class only contains static methods).</action> <action type="fix" dev="ggregory" due-to="Gary Gregory">The class org.apache.commons.beanutils2.MethodUtils is now final (the class only contains static methods).</action> <action type="fix" dev="ggregory" due-to="Gary Gregory">The constructor org.apache.commons.beanutils2.MethodUtils is now private (the class only contains static methods).</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">The class org.apache.commons.beanutils2.ConvertUtils is now final (the class only contains static methods).</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">The constructor org.apache.commons.beanutils2.ConvertUtils is now private (the class only contains static methods).</action> <!-- ADD --> <!-- UPDATE --> <action type="update" dev="ggregory" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 78 to 81.</action> diff --git a/src/main/java/org/apache/commons/beanutils2/ConvertUtils.java b/src/main/java/org/apache/commons/beanutils2/ConvertUtils.java index 814a4e89..3be4b71d 100644 --- a/src/main/java/org/apache/commons/beanutils2/ConvertUtils.java +++ b/src/main/java/org/apache/commons/beanutils2/ConvertUtils.java @@ -28,7 +28,7 @@ package org.apache.commons.beanutils2; * * @see ConvertUtilsBean */ -public class ConvertUtils { +public final class ConvertUtils { /** * <p> @@ -220,4 +220,8 @@ public class ConvertUtils { public static <T> void register(final Converter<T> converter, final Class<T> clazz) { ConvertUtilsBean.getInstance().register(converter, clazz); } + + private ConvertUtils() { + // empty + } }