Skip to content

Commit 9bddac8

Browse files
committed
Update Javadoc due to changes in 5fd9e88
See #4048
1 parent 3f40a7e commit 9bddac8

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

junit-platform-commons/src/main/java/org/junit/platform/commons/util/ReflectionUtils.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,8 @@ public static boolean isMultidimensionalArray(Object obj) {
417417
* supplied target type for the purpose of reflective method invocations.
418418
*
419419
* <p>In contrast to {@link Class#isAssignableFrom(Class)}, this method
420-
* returns {@code true} if the target type represents a primitive type (or
421-
* {@code void}) whose wrapper matches the supplied source type. In addition,
422-
* this method also supports
420+
* returns {@code true} if the target type represents a primitive type whose
421+
* wrapper matches the supplied source type. In addition, this method also supports
423422
* <a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.1.2">
424423
* widening conversions</a> for primitive target types.
425424
*
@@ -453,9 +452,8 @@ public static boolean isAssignableTo(Class<?> sourceType, Class<?> targetType) {
453452
* type for the purpose of reflective method invocations.
454453
*
455454
* <p>In contrast to {@link Class#isInstance(Object)}, this method returns
456-
* {@code true} if the target type represents a primitive type (or {@code void})
457-
* whose wrapper matches the supplied object's type. In addition, this method
458-
* also supports
455+
* {@code true} if the target type represents a primitive type whose wrapper
456+
* matches the supplied object's type. In addition, this method also supports
459457
* <a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.1.2">
460458
* widening conversions</a> for primitive types and their corresponding
461459
* wrapper types.
@@ -549,12 +547,11 @@ static boolean isWideningConversion(Class<?> sourceType, Class<?> targetType) {
549547
}
550548

551549
/**
552-
* Get the wrapper type for the supplied primitive type (or {@code void}).
550+
* Get the wrapper type for the supplied primitive type.
553551
*
554-
* @param type the primitive type (or {@code void}) for which to retrieve the
555-
* wrapper type
552+
* @param type the primitive type for which to retrieve the wrapper type
556553
* @return the corresponding wrapper type or {@code null} if the
557-
* supplied type is {@code null} or not a primitive type or {@code void}
554+
* supplied type is {@code null} or not a primitive type
558555
*/
559556
public static Class<?> getWrapperType(Class<?> type) {
560557
return primitiveToWrapperMap.get(type);

0 commit comments

Comments
 (0)