Skip to content

Commit f788ce2

Browse files
committed
Javadoc
1 parent 19adcd7 commit f788ce2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/main/java/org/apache/commons/lang3/ClassUtils.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,10 @@ private static String getCanonicalName(final String name) {
539539
* Gets the (initialized) class represented by {@code className} using the {@code classLoader}. This implementation
540540
* supports the syntaxes "{@code java.util.Map.Entry[]}", "{@code java.util.Map$Entry[]}",
541541
* "{@code [Ljava.util.Map.Entry;}", and "{@code [Ljava.util.Map$Entry;}".
542+
* <p>
543+
* The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not
544+
* been collapsed.
545+
* </p>
542546
*
543547
* @param classLoader the class loader to use to load the class.
544548
* @param className the class name.
@@ -560,6 +564,10 @@ public static Class<?> getClass(final ClassLoader classLoader, final String clas
560564
* Gets the class represented by {@code className} using the {@code classLoader}. This implementation supports the
561565
* syntaxes "{@code java.util.Map.Entry[]}", "{@code java.util.Map$Entry[]}", "{@code [Ljava.util.Map.Entry;}", and
562566
* "{@code [Ljava.util.Map$Entry;}".
567+
* <p>
568+
* The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not
569+
* been collapsed.
570+
* </p>
563571
*
564572
* @param classLoader the class loader to use to load the class.
565573
* @param className the class name.
@@ -596,6 +604,10 @@ public static Class<?> getClass(final ClassLoader classLoader, final String clas
596604
* Gets the (initialized) class represented by {@code className} using the current thread's context class loader.
597605
* This implementation supports the syntaxes "{@code java.util.Map.Entry[]}", "{@code java.util.Map$Entry[]}",
598606
* "{@code [Ljava.util.Map.Entry;}", and "{@code [Ljava.util.Map$Entry;}".
607+
* <p>
608+
* The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not
609+
* been collapsed.
610+
* </p>
599611
*
600612
* @param className the class name
601613
* @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
616628
* Gets the class represented by {@code className} using the current thread's context class loader. This
617629
* implementation supports the syntaxes "{@code java.util.Map.Entry[]}", "{@code java.util.Map$Entry[]}",
618630
* "{@code [Ljava.util.Map.Entry;}", and "{@code [Ljava.util.Map$Entry;}".
631+
* <p>
632+
* The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not
633+
* been collapsed.
634+
* </p>
619635
*
620636
* @param className the class name.
621637
* @param initialize whether the class must be initialized.
@@ -1559,6 +1575,10 @@ public static Class<?>[] toClass(final Object... array) {
15591575

15601576
/**
15611577
* Converts and cleans up a class name to a JLS style class name.
1578+
* <p>
1579+
* The provided class name is normalized by removing all whitespace. This is especially helpful when handling XML element values in which whitespace has not
1580+
* been collapsed.
1581+
* </p>
15621582
*
15631583
* @param className the class name.
15641584
* @return the converted name.

0 commit comments

Comments
 (0)