Skip to content

Commit 5ac9cf5

Browse files
committed
Fix javadoc errors
1 parent 38a9e9a commit 5ac9cf5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static List<Class<?>> getFieldClasses(final Field field,
9191
return Types.raws(Types.fieldType(field, type));
9292
}
9393

94-
/** @deprecated Use {@link Types#returnType} instead. */
94+
/** @deprecated Use {@link Types#methodReturnType} instead. */
9595
@Deprecated
9696
public static Type getMethodReturnType(final Method method,
9797
final Class<?> type)
@@ -100,7 +100,7 @@ public static Type getMethodReturnType(final Method method,
100100
}
101101

102102
/**
103-
* @deprecated Use {@link Types#returnType} and {@link Types#raws} instead.
103+
* @deprecated Use {@link Types#methodReturnType} and {@link Types#raws} instead.
104104
*/
105105
@Deprecated
106106
public static List<Class<?>> getMethodReturnClasses(final Method method,

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@
7676
* Utility class for working with generic types, fields and methods.
7777
* <p>
7878
* Logic and inspiration were drawn from the following excellent libraries:
79+
* </p>
7980
* <ul>
8081
* <li>Google Guava's {@code com.google.common.reflect} package.</li>
8182
* <li>Apache Commons Lang 3's {@code org.apache.commons.lang3.reflect} package.
8283
* </li>
8384
* <li><a href="https://github.com/coekarts/gentyref">GenTyRef</a> (Generic Type
8485
* Reflector), a library for runtime generic type introspection.</li>
8586
* </ul>
86-
* </p>
8787
*
8888
* @author Curtis Rueden
8989
*/
@@ -416,6 +416,7 @@ public static boolean isText(final Class<?> type) {
416416
* Returns the non-primitive {@link Class} closest to the given type.
417417
* <p>
418418
* Specifically, the following type conversions are done:
419+
* </p>
419420
* <ul>
420421
* <li>boolean.class becomes Boolean.class</li>
421422
* <li>byte.class becomes Byte.class</li>
@@ -427,6 +428,7 @@ public static boolean isText(final Class<?> type) {
427428
* <li>short.class becomes Short.class</li>
428429
* <li>void.class becomes Void.class</li>
429430
* </ul>
431+
* <p>
430432
* All other types are unchanged.
431433
* </p>
432434
*/
@@ -451,6 +453,7 @@ public static <T> Class<T> box(final Class<T> type) {
451453
* Returns the primitive {@link Class} closest to the given type.
452454
* <p>
453455
* Specifically, the following type conversions are done:
456+
* </p>
454457
* <ul>
455458
* <li>Boolean.class becomes boolean.class</li>
456459
* <li>Byte.class becomes byte.class</li>
@@ -462,6 +465,7 @@ public static <T> Class<T> box(final Class<T> type) {
462465
* <li>Short.class becomes short.class</li>
463466
* <li>Void.class becomes void.class</li>
464467
* </ul>
468+
* <p>
465469
* All other types are unchanged.
466470
* </p>
467471
*/

0 commit comments

Comments
 (0)