Skip to content

Commit 236a2d3

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

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
@@ -39,6 +39,8 @@
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>
4040
<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>
4141
<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>
42+
<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>
43+
<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>
4244
<!-- ADD -->
4345
<!-- UPDATE -->
4446
<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/ConvertUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
* @see ConvertUtilsBean
3030
*/
31-
public class ConvertUtils {
31+
public final class ConvertUtils {
3232

3333
/**
3434
* <p>
@@ -220,4 +220,8 @@ public static <T> Class<T> primitiveToWrapper(final Class<T> type) {
220220
public static <T> void register(final Converter<T> converter, final Class<T> clazz) {
221221
ConvertUtilsBean.getInstance().register(converter, clazz);
222222
}
223+
224+
private ConvertUtils() {
225+
// empty
226+
}
223227
}

0 commit comments

Comments
 (0)