Skip to content

Commit 2d099fa

Browse files
committed
moved static class inside main class
1 parent 605eda6 commit 2d099fa

File tree

1 file changed

+5
-6
lines changed
  • modules/openapi-generator/src/main/resources/Java/libraries/native

1 file changed

+5
-6
lines changed

modules/openapi-generator/src/main/resources/Java/libraries/native/api.mustache

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ import java.util.function.Consumer;
5353
import java.util.concurrent.CompletableFuture;
5454
{{/asyncNative}}
5555

56-
static class HttpRequestBuilderExtensions {
56+
{{>generatedAnnotation}}
57+
{{#operations}}
58+
public class {{classname}} {
59+
private static class HttpRequestBuilderExtensions {
5760
static HttpRequest.Builder withAdditionalHeaders(HttpRequest.Builder builder, Map<String, String> headers) {
5861
if (headers != null) {
5962
for (Map.Entry<String, String> entry : headers.entrySet()) {
@@ -62,11 +65,7 @@ static class HttpRequestBuilderExtensions {
6265
}
6366
return builder;
6467
}
65-
}
66-
67-
{{>generatedAnnotation}}
68-
{{#operations}}
69-
public class {{classname}} {
68+
}
7069
private final HttpClient memberVarHttpClient;
7170
private final ObjectMapper memberVarObjectMapper;
7271
private final String memberVarBaseUri;

0 commit comments

Comments
 (0)