@@ -423,10 +423,11 @@ private static Object adapt(Object value, Map<Class<?>, Map<String, Property>> p
423423 }
424424
425425 /**
426- * Adapts a value for strongly typed access. If the value is already an
427- * instance of the given type, it is returned as is. Otherwise:
426+ * Adapts a value for strongly typed access.
428427 *
429428 * <ul>
429+ * <li>If the value is already an instance of the given type, it is returned
430+ * as is.</li>
430431 * <li>If the target type is a number or boolean, the value is parsed or
431432 * coerced using the appropriate conversion method. Missing or <code>null</code>
432433 * values are automatically converted to <code>0</code> or <code>false</code>
@@ -454,19 +455,16 @@ private static Object adapt(Object value, Map<Class<?>, Map<String, Property>> p
454455 * in an adapter of the same type that automatically adapts its elements.</li>
455456 * </ul>
456457 *
457- * Otherwise, the target is assumed to be a bean, and the value is assumed to
458- * be a map:
458+ * Otherwise, the value is assumed to be a map and is adapted as follows:
459459 *
460460 * <ul>
461- * <li>If the target is an interface, the return value is a proxy
462- * implementation of the given interface that maps accessor methods to entries
463- * in the map. `Object` methods are delegated to the underlying map.</li>
464- * <li>If the target is a concrete type , an instance of the type is dynamically
465- * created and populated using the entries in the map.</li>
461+ * <li>If the target type is an interface, the return value is a proxy
462+ * implementation of the interface that maps accessor methods to entries in
463+ * the map. `Object` methods are delegated to the underlying map.</li>
464+ * <li>If the target type is a concrete class , an instance of the type is
465+ * dynamically created and populated using the entries in the map.</li>
466466 * </ul>
467467 *
468- * In either case, property values are adapted as described above.
469- *
470468 * @param <T>
471469 * The target type.
472470 *
0 commit comments