Skip to content

Commit d87844f

Browse files
committed
ClassUtils: add @return to loadClass javadoc
1 parent 4a4b185 commit d87844f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/scijava/util/ClassUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ private ClassUtils() {
9393
* Loads the class with the given name, using the current thread's context
9494
* class loader, or null if it cannot be loaded.
9595
*
96+
* @return The loaded class, or null if the class could not be loaded.
9697
* @see #loadClass(String, ClassLoader)
9798
*/
9899
public static Class<?> loadClass(final String className) {
@@ -118,6 +119,7 @@ public static Class<?> loadClass(final String className) {
118119
* @param name The name of the class to load.
119120
* @param classLoader The class loader with which to load the class; if null,
120121
* the current thread's context class loader will be used.
122+
* @return The loaded class, or null if the class could not be loaded.
121123
*/
122124
public static Class<?> loadClass(final String name,
123125
final ClassLoader classLoader)

0 commit comments

Comments
 (0)