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 6f71fcf0f0e0c2f5b5e6304e9a7994a8cf788aa8 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jan 31 16:25:40 2025 -0500 The class org.apache.commons.beanutils2.ConstructorUtils is now final (the class only contains static methods) The constructor org.apache.commons.beanutils2.ConstructorUtils is now private (the class only contains static methods) --- src/changes/changes.xml | 2 ++ src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 60b6fb5b..6a3c8d3f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -41,6 +41,8 @@ <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> + <action type="fix" dev="ggregory" due-to="Gary Gregory">The class org.apache.commons.beanutils2.ConstructorUtils 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.ConstructorUtils 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/ConstructorUtils.java b/src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java index 66d76715..1f8e2a4f 100644 --- a/src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java +++ b/src/main/java/org/apache/commons/beanutils2/ConstructorUtils.java @@ -40,7 +40,7 @@ import java.lang.reflect.Modifier; * warning will be logged and the method may fail. * </p> */ -public class ConstructorUtils { +public final class ConstructorUtils { /** * Returns a constructor with single argument. @@ -410,4 +410,7 @@ public class ConstructorUtils { return args; } + private ConstructorUtils() { + // empty + } }