This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit f788ce2b5ecadc09c304e94ab2a7fa17239f9bd9 Author: Gary Gregory <[email protected]> AuthorDate: Wed Nov 19 10:14:20 2025 -0500 Javadoc --- .../java/org/apache/commons/lang3/ClassUtils.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 6e8af9d9c..9c7195082 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -539,6 +539,10 @@ private static String getCanonicalName(final String name) { * Gets the (initialized) class represented by {@code className} using the {@code classLoader}. This implementation * supports the syntaxes "{@code java.util.Map.Entry[]}", "{@code java.util.Map$Entry[]}", * "{@code [Ljava.util.Map.Entry;}", and "{@code [Ljava.util.Map$Entry;}". + * <p> + * The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not + * been collapsed. + * </p> * * @param classLoader the class loader to use to load the class. * @param className the class name. @@ -560,6 +564,10 @@ public static Class<?> getClass(final ClassLoader classLoader, final String clas * Gets the class represented by {@code className} using the {@code classLoader}. This implementation supports the * syntaxes "{@code java.util.Map.Entry[]}", "{@code java.util.Map$Entry[]}", "{@code [Ljava.util.Map.Entry;}", and * "{@code [Ljava.util.Map$Entry;}". + * <p> + * The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not + * been collapsed. + * </p> * * @param classLoader the class loader to use to load the class. * @param className the class name. @@ -596,6 +604,10 @@ public static Class<?> getClass(final ClassLoader classLoader, final String clas * Gets the (initialized) class represented by {@code className} using the current thread's context class loader. * This implementation supports the syntaxes "{@code java.util.Map.Entry[]}", "{@code java.util.Map$Entry[]}", * "{@code [Ljava.util.Map.Entry;}", and "{@code [Ljava.util.Map$Entry;}". + * <p> + * The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not + * been collapsed. + * </p> * * @param className the class name * @return the class represented by {@code className} using the current thread's context class loader @@ -616,6 +628,10 @@ public static Class<?> getClass(final String className) throws ClassNotFoundExce * Gets the class represented by {@code className} using the current thread's context class loader. This * implementation supports the syntaxes "{@code java.util.Map.Entry[]}", "{@code java.util.Map$Entry[]}", * "{@code [Ljava.util.Map.Entry;}", and "{@code [Ljava.util.Map$Entry;}". + * <p> + * The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not + * been collapsed. + * </p> * * @param className the class name. * @param initialize whether the class must be initialized. @@ -1559,6 +1575,10 @@ public static Class<?>[] toClass(final Object... array) { /** * Converts and cleans up a class name to a JLS style class name. + * <p> + * The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not + * been collapsed. + * </p> * * @param className the class name. * @return the converted name.
