File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/swagger-codegen/src/main/resources/JavaSpring Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public interface {{classname}} {
101
101
produces = { {{#produces} }"{ {{mediaType} }}"{ {#hasMore} }, { {/hasMore} }{ {/produces} } }, { {/hasProduces} }{ {#hasConsumes} }
102
102
consumes = { {{#consumes} }"{ {{mediaType} }}"{ {#hasMore} }, { {/hasMore} }{ {/consumes} } },{ {/hasConsumes} }{ {/singleContentTypes} }
103
103
method = RequestMethod.{ {httpMethod} })
104
- { {#defaultInterfaces} }default { {/defaultInterfaces} }{ {#responseWrapper} }{ {.} }<{ {/responseWrapper} }ResponseEntity<{ {> returnTypes} }>{ {#responseWrapper} }>{ {/responseWrapper} } { {#delegate-method} }_{ {/delegate-method} }{ {operationId} }({ {#allParams} }{ {> queryParams} }{ {> pathParams} }{ {> headerParams} }{ {> bodyParams} }{ {> formParams} }{ {#hasMore} },{ {/hasMore} }{ {/allParams} }){ {^defaultInterfaces } };{ {/defaultInterfaces } }{ {#defaultInterfaces} } {
104
+ { {#jdk8 } } { {# defaultInterfaces} }default { {/defaultInterfaces} }{ {/jdk8 } } { { #responseWrapper} }{ {.} }<{ {/responseWrapper} }ResponseEntity<{ {> returnTypes} }>{ {#responseWrapper} }>{ {/responseWrapper} } { {#delegate-method} }_{ {/delegate-method} }{ {operationId} }({ {#allParams} }{ {> queryParams} }{ {> pathParams} }{ {> headerParams} }{ {> bodyParams} }{ {> formParams} }{ {#hasMore} },{ {/hasMore} }{ {/allParams} }){ {^jdk8 } };{ {/jdk8 } } { {#jdk8 } }{ {#defaultInterfaces} } {
105
105
{{#delegate-method} }
106
106
return { {operationId} }({ {#allParams} }{ {paramName} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} });
107
107
}
@@ -129,7 +129,7 @@ public interface {{classname}} {
129
129
{ {#isDelegate} }
130
130
return getDelegate().{ {operationId} }({ {#allParams} }{ {paramName} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} });
131
131
{ {/isDelegate} }
132
- }{ {/defaultInterfaces} }
132
+ }{ {/defaultInterfaces} }{ {/jdk8 } }
133
133
134
134
{ {/operation} }
135
135
}
You can’t perform that action at this time.
0 commit comments