Skip to content

Commit 0a594d0

Browse files
committed
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)
1 parent 94d415b commit 0a594d0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/changes/changes.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
<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>
3838
<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>
3939
<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>
40+
<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>
41+
<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>
4042
<!-- ADD -->
4143
<!-- UPDATE -->
4244
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 78 to 81.</action>

src/main/java/org/apache/commons/beanutils2/MethodUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* be logged and the method may fail.
5151
* </p>
5252
*/
53-
public class MethodUtils {
53+
public final class MethodUtils {
5454

5555
/**
5656
* Represents the key to looking up a Method by reflection.
@@ -1170,4 +1170,8 @@ public static Class<?> toNonPrimitiveClass(final Class<?> clazz) {
11701170
}
11711171
return clazz;
11721172
}
1173+
1174+
private MethodUtils() {
1175+
// empty
1176+
}
11731177
}

0 commit comments

Comments
 (0)