Fix javadoc
Signed-off-by: Matt Sicker <boards@gmail.com>
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java
index b49863b..3869fe2 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/ReflectionUtil.java
@@ -171,8 +171,7 @@
/**
* Constructs a new {@code T} object using the default constructor of its class. Any exceptions thrown by the
- * constructor will be rethrown by this method, possibly wrapped in an
- * {@link java.lang.reflect.UndeclaredThrowableException}.
+ * constructor will be rethrown by this method, possibly wrapped in an {@link InternalException}.
*
* @param clazz the class to use for instantiation.
* @param <T> the type of the object to construct.
@@ -180,6 +179,7 @@
* @throws IllegalArgumentException if the given class is abstract, an interface, an array class, a primitive type,
* or void
* @throws IllegalStateException if access is denied to the constructor, or there are no default constructors
+ * @throws InternalException wrapper of the the underlying exception if checked
*/
public static <T> T instantiate(final Class<T> clazz) {
Objects.requireNonNull(clazz, "No class provided");