Skip to content

Commit

Permalink
Update WebService.
Browse files Browse the repository at this point in the history
  • Loading branch information
gk-brown committed Oct 3, 2024
1 parent 1f65f0f commit c4103ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ Method parameters may be any of the following types:
* `java.time.Duration`
* `java.time.Period`
* `java.util.UUID`
* `java.net.URI`
* `java.nio.file.Path`
* `java.util.List`, `java.util.Set`, array/varargs
* `jakarta.servlet.http.Part`

Expand Down
4 changes: 4 additions & 0 deletions kilo-server/src/main/java/org/httprpc/kilo/WebService.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
import java.lang.reflect.Parameter;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.net.URI;
import java.nio.file.Path;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDate;
Expand Down Expand Up @@ -1260,6 +1262,8 @@ private TypeDescriptor describeRawType(Class<?> type) {
|| type == Duration.class
|| type == Period.class
|| type == UUID.class
|| type == URI.class
|| type == Path.class
|| type == Part.class) {
return new TypeDescriptor(type, true);
} else if (type.isArray()) {
Expand Down

0 comments on commit c4103ef

Please sign in to comment.