Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle the case where
@Default
annotation is specified withou… (#1864)
Motivation: A `NoSuchElementException` is raised during server startup time if a user specified a `@Default` annotation without a value: public class MyAnnotatedService { @get("/foo") public String foo(@param @default String value) { return String.valueOf(value); } } Modifications: - Allow having no value in `@Default` annotation Result: - Fixes #1858
- Loading branch information
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters