@@ -417,9 +417,8 @@ public static boolean isMultidimensionalArray(Object obj) {
417
417
* supplied target type for the purpose of reflective method invocations.
418
418
*
419
419
* <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
423
422
* <a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.1.2">
424
423
* widening conversions</a> for primitive target types.
425
424
*
@@ -453,9 +452,8 @@ public static boolean isAssignableTo(Class<?> sourceType, Class<?> targetType) {
453
452
* type for the purpose of reflective method invocations.
454
453
*
455
454
* <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
459
457
* <a href="https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.1.2">
460
458
* widening conversions</a> for primitive types and their corresponding
461
459
* wrapper types.
@@ -549,12 +547,11 @@ static boolean isWideningConversion(Class<?> sourceType, Class<?> targetType) {
549
547
}
550
548
551
549
/**
552
- * Get the wrapper type for the supplied primitive type (or {@code void}) .
550
+ * Get the wrapper type for the supplied primitive type.
553
551
*
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
556
553
* @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
558
555
*/
559
556
public static Class <?> getWrapperType (Class <?> type ) {
560
557
return primitiveToWrapperMap .get (type );
0 commit comments