Skip to content

Commit 572d821

Browse files
committed
Deprecate ConstructorUtils.ConstructorUtils()
1 parent be438f8 commit 572d821

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<action type="fix" dev="ggregory" due-to="Gary Gregory">Javadoc is missing its Overview page.</action>
3535
<action type="fix" dev="ggregory" due-to="Gary Gregory">Remove -nouses directive from maven-bundle-plugin. OSGi package imports now state 'uses' definitions for package imports, this doesn't affect JPMS (from org.apache.commons:commons-parent:80).</action>
3636
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate BeanUtils.BeanUtils().</action>
37+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate ConstructorUtils.ConstructorUtils().</action>
3738
<!-- ADD -->
3839
<!-- UPDATE -->
3940
<action dev="ggregory" type="update" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 78 to 81.</action>

src/main/java/org/apache/commons/beanutils/ConstructorUtils.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ public class ConstructorUtils {
4242
/** An empty object array */
4343
private static final Object[] EMPTY_OBJECT_ARRAY = {};
4444

45+
/**
46+
* Deprecated, all methods are static.
47+
*
48+
* @deprecated Will be private in 2.0.
49+
*/
50+
@Deprecated
51+
public ConstructorUtils() {
52+
// empty
53+
}
54+
4555
/**
4656
* Returns a constructor with single argument.
4757
* @param <T> the type of the constructor

0 commit comments

Comments
 (0)