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:
LionH
2021-09-02 04:32:15 +02:00
committed by GitHub
parent a3f012545d
commit 67e515447e

View File

@@ -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;