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 0a594d0f973d92cc834b12ef4866e3efba00074a Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jan 31 16:23:46 2025 -0500 The class org.apache.commons.beanutils2.MethodUtils is now final (the class only contains static methods) The constructor org.apache.commons.beanutils2.MethodUtils is now private (the class only contains static methods) --- src/changes/changes.xml | 2 ++ src/main/java/org/apache/commons/beanutils2/MethodUtils.java | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 5413fc0a..b426f525 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -37,6 +37,8 @@ <action type="fix" dev="ggregory" due-to="Gary Gregory">The constructor org.apache.commons.beanutils2.locale.LocaleConvertUtils 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.locale.LocaleBeanUtils 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.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> <!-- 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/MethodUtils.java b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java index 2f903b5e..8c3b28c8 100644 --- a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java +++ b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java @@ -50,7 +50,7 @@ import org.apache.commons.logging.LogFactory; * be logged and the method may fail. * </p> */ -public class MethodUtils { +public final class MethodUtils { /** * Represents the key to looking up a Method by reflection. @@ -1170,4 +1170,8 @@ public class MethodUtils { } return clazz; } + + private MethodUtils() { + // empty + } }