Skip to content

Commit 6f71fcf

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

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/changes/changes.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
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>
4242
<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>
4343
<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>
44+
<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>
45+
<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>
4446
<!-- ADD -->
4547
<!-- UPDATE -->
4648
<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/ConstructorUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* warning will be logged and the method may fail.
4141
* </p>
4242
*/
43-
public class ConstructorUtils {
43+
public final class ConstructorUtils {
4444

4545
/**
4646
* Returns a constructor with single argument.
@@ -410,4 +410,7 @@ private static Object[] toArray(final Object arg) {
410410
return args;
411411
}
412412

413+
private ConstructorUtils() {
414+
// empty
415+
}
413416
}

0 commit comments

Comments
 (0)