mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 06:00:52 +00:00
Adding the useOptional in the ApiController (#6735)
* Adding the useOptional in the ApiController * If jdk8 is disabled but useOptional is enabled, avoid duplicate import.
This commit is contained in:
parent
a3f012545d
commit
67e515447e
@ -37,6 +37,11 @@ import javax.validation.Valid;
|
||||
{{#jdk8}}
|
||||
import java.util.Optional;
|
||||
{{/jdk8}}
|
||||
{{^jdk8}}
|
||||
{{#useOptional}}
|
||||
import java.util.Optional;
|
||||
{{/useOptional}}
|
||||
{{/jdk8}}
|
||||
{{^jdk8}}
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
Loading…
x
Reference in New Issue
Block a user