aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshalk(xiao kun) <xshalk@163.com>2022-06-14 06:14:37 +0800
committerGitHub <noreply@github.com>2022-06-13 18:14:37 -0400
commitbf2d0bf02baa3f71a0b0fd3aed74934cdf143a6b (patch)
tree4b33d5bdaefc364e7492291097b5e204b092c99a
parentc55962646ad050b46f182f562b60499ada906c51 (diff)
downloadapache-commons-lang-bf2d0bf02baa3f71a0b0fd3aed74934cdf143a6b.tar.gz
update ClassUtils javadoc with throw npe (#912)
-rw-r--r--src/main/java/org/apache/commons/lang3/ClassUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java
index bdd6e9ef1..6dd8e2600 100644
--- a/src/main/java/org/apache/commons/lang3/ClassUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java
@@ -533,6 +533,7 @@ public class ClassUtils {
* @param classLoader the class loader to use to load the class
* @param className the class name
* @return the class represented by {@code className} using the {@code classLoader}
+ * @throws NullPointerException if the className is null
* @throws ClassNotFoundException if the class is not found
*/
public static Class<?> getClass(final ClassLoader classLoader, final String className) throws ClassNotFoundException {
@@ -548,6 +549,7 @@ public class ClassUtils {
* @param className the class name
* @param initialize whether the class must be initialized
* @return the class represented by {@code className} using the {@code classLoader}
+ * @throws NullPointerException if the className is null
* @throws ClassNotFoundException if the class is not found
*/
public static Class<?> getClass(final ClassLoader classLoader, final String className, final boolean initialize) throws ClassNotFoundException {
@@ -583,6 +585,7 @@ public class ClassUtils {
*
* @param className the class name
* @return the class represented by {@code className} using the current thread's context class loader
+ * @throws NullPointerException if the className is null
* @throws ClassNotFoundException if the class is not found
*/
public static Class<?> getClass(final String className) throws ClassNotFoundException {
@@ -597,6 +600,7 @@ public class ClassUtils {
* @param className the class name
* @param initialize whether the class must be initialized
* @return the class represented by {@code className} using the current thread's context class loader
+ * @throws NullPointerException if the className is null
* @throws ClassNotFoundException if the class is not found
*/
public static Class<?> getClass(final String className, final boolean initialize) throws ClassNotFoundException {
@@ -1582,6 +1586,7 @@ public class ClassUtils {
*
* @param className the class name
* @return the converted name
+ * @throws NullPointerException if the className is null
*/
private static String toCanonicalName(String className) {
className = StringUtils.deleteWhitespace(className);