|
22 | 22 | import java.lang.reflect.Modifier; |
23 | 23 |
|
24 | 24 | /** |
25 | | - * <p>Utility reflection methods focused on constructors, modeled after {@link MethodUtils}.</p> |
| 25 | + * <p> |
| 26 | + * Utility reflection methods focused on constructors, modeled after {@link MethodUtils}. |
| 27 | + * </p> |
26 | 28 | * |
27 | 29 | * <strong>Known Limitations: Accessing Public Constructors In A Default Access Superclass</strong> |
28 | | - * <p>There is an issue when invoking public constructors contained in a default access superclass. |
29 | | - * Reflection locates these constructors fine and correctly assigns them as public. |
30 | | - * However, an {@code IllegalAccessException} is thrown if the constructors is invoked.</p> |
| 30 | + * <p> |
| 31 | + * There is an issue when invoking public constructors contained in a default access superclass. Reflection locates these constructors fine and correctly |
| 32 | + * assigns them as public. However, an {@code IllegalAccessException} is thrown if the constructors is invoked. |
| 33 | + * </p> |
31 | 34 | * |
32 | | - * <p>{@code ConstructorUtils} contains a workaround for this situation. |
33 | | - * It will attempt to call {@code setAccessible} on this constructor. |
34 | | - * If this call succeeds, then the method can be invoked as normal. |
35 | | - * This call will only succeed when the application has sufficient security privileges. |
36 | | - * If this call fails then a warning will be logged and the method may fail.</p> |
| 35 | + * <p> |
| 36 | + * {@code ConstructorUtils} contains a workaround for this situation. It will attempt to call {@code setAccessible} on this constructor. If this call succeeds, |
| 37 | + * then the method can be invoked as normal. This call will only succeed when the application has sufficient security privileges. If this call fails then a |
| 38 | + * warning will be logged and the method may fail. |
| 39 | + * </p> |
| 40 | + * |
| 41 | + * @deprecated Use <a href="https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/reflect/ConstructorUtils.html">ConstructorUtils from |
| 42 | + * Apache Commons Lang</a>. ConstructorUtils is unused in this component. |
37 | 43 | */ |
38 | 44 | public class ConstructorUtils { |
39 | 45 |
|
|
0 commit comments