Skip to content

Commit e166a36

Browse files
committed
Update README.md.
1 parent e3ca627 commit e166a36

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,17 @@ Method parameters may be any of the following types:
110110
* `java.time.Period`
111111
* `java.util.UUID`
112112

113-
The following multi-value types are also supported:
113+
Additionally, these types are supported for multi-value parameters:
114114

115115
* `java.util.List`
116-
* `java.util.Set`
116+
* `java.util.Set`/`SequencedSet`/`SortedSet`
117117
* array/varargs
118118

119-
Additionally, `java.util.Map`, bean, record, and `org.w3c.dom.Document` types are supported for [body content](#body-content).
119+
The following types are supported for [body content](#body-content):
120+
121+
* `java.util.Map`/`SequencedMap`/`SortedMap`
122+
* `org.w3c.dom.Document`
123+
* bean/record
120124

121125
The `FormData` annotation can be used to indicate that a handler method accepts [form data](https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4). Arguments of type `jakarta.servlet.http.Part` may be used with requests submitted as [multi-part](https://jakarta.ee/specifications/servlet/6.1/jakarta-servlet-spec-6.1#_MultipartConfig) form data.
122126

kilo-client/src/main/java/org/httprpc/kilo/beans/BeanAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,16 +675,16 @@ public static <T> T coerce(Object value, Class<T> type) {
675675
}
676676

677677
/**
678-
* Converts a value to a generic type.
678+
* Coerces a value to a generic type.
679679
*
680680
* @param value
681-
* The value to convert.
681+
* The value to coerce.
682682
*
683683
* @param type
684684
* The target type.
685685
*
686686
* @return
687-
* The converted value.
687+
* The coerced value.
688688
*/
689689
public static Object coerceGeneric(Object value, Type type) {
690690
return switch (type) {

0 commit comments

Comments
 (0)