|
58 | 58 | import static org.httprpc.kilo.util.Optionals.*; |
59 | 59 |
|
60 | 60 | /** |
61 | | - * Provides access to Java bean properties via the {@link Map} interface. |
| 61 | + * Provides access to Java bean properties and record components via the |
| 62 | + * {@link Map} interface. |
62 | 63 | */ |
63 | 64 | public class BeanAdapter extends AbstractMap<String, Object> { |
64 | 65 | /** |
@@ -564,9 +565,6 @@ public Entry<String, Object> next() { |
564 | 565 | * <p>If the value is an array, it is wrapped in a {@link List} that will |
565 | 566 | * recursively adapt the array's elements.</p> |
566 | 567 | * |
567 | | - * <p>If the value is a {@link Record}, it is wrapped in a {@link Map} that |
568 | | - * will recursively adapt the record's fields.</p> |
569 | | - * |
570 | 568 | * <p>If the value is an {@link Iterable}, it is wrapped in a {@link List} |
571 | 569 | * that will recursively adapt the iterable's elements. If the iterable |
572 | 570 | * implements {@link Collection}, the adapter will support the |
@@ -651,8 +649,7 @@ public static Object adapt(Object value) { |
651 | 649 | * <p>If none of the previous conditions apply, the provided value is |
652 | 650 | * assumed to be a map. If the if the target type is a {@link Record}, the |
653 | 651 | * resulting value is instantiated via the type's canonical constructor |
654 | | - * using the entries in the map. Otherwise, the target type is assumed to |
655 | | - * be a bean:</p> |
| 652 | + * using the entries in the map. Otherwise:</p> |
656 | 653 | * |
657 | 654 | * <ul> |
658 | 655 | * <li>If the type is an interface, the return value is a proxy that maps |
|
0 commit comments