Skip to content

Commit 27f1469

Browse files
fixed newlines and generate comments on config
1 parent e7b142d commit 27f1469

31 files changed

Lines changed: 18 additions & 49 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ import java.util.Objects;
3737
import java.util.zip.GZIPOutputStream;
3838
{{/useGzipFeature}}
3939
import java.util.stream.Collectors;
40-
{{#useUnaryInterceptor}}import java.util.function.UnaryOperator;{{/useUnaryInterceptor}}
40+
{{#useUnaryInterceptor}}
41+
import java.util.function.UnaryOperator;
42+
{{/useUnaryInterceptor}}
4143
import static java.nio.charset.StandardCharsets.UTF_8;
4244

4345
/**
@@ -343,8 +345,7 @@ public class ApiClient {
343345
* request builder is passed into this function for further modification,
344346
* after which it is sent out.</p>
345347
*
346-
* <p>This is useful for altering the requests in a custom manner, such as
347-
* adding headers. It could also be used for logging and monitoring.</p>
348+
*{{#useUnaryInterceptor}} <p>This is useful for altering the requests in a custom manner, such as adding headers. It could also be used for logging and monitoring.</p>{{/useUnaryInterceptor}}
348349
*
349350
* @param interceptor A function invoked before creating each request. A value
350351
* of null resets the interceptor to a no-op.
@@ -368,7 +369,7 @@ public class ApiClient {
368369
* Set a custom response interceptor.
369370
*
370371
* <p>This is useful for logging, monitoring or extraction of header variables</p>
371-
* <p>If you are using the UnaryInterceptor you can even manipulate the response to a certain degree</p>
372+
*{{#useUnaryInterceptor}} <p>If you are using the UnaryInterceptor you can even manipulate the response to a certain degree</p>{{/useUnaryInterceptor}}
372373
* @param interceptor A function invoked before creating each request. A value
373374
* of null resets the interceptor to a no-op.
374375
* @return This object.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ import java.util.List;
4848
import java.util.Map;
4949
import java.util.Set;
5050
import java.util.Locale;
51-
{{#useUnaryInterceptor}}import java.util.function.UnaryOperator;{{/useUnaryInterceptor}}
51+
{{#useUnaryInterceptor}}
52+
import java.util.function.UnaryOperator;
53+
{{/useUnaryInterceptor}}
5254
import java.util.function.Consumer;
5355
{{#useGzipFeature}}
5456
import java.util.function.Supplier;

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/ApiClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import java.util.Optional;
3939
import java.util.zip.GZIPInputStream;
4040
import java.util.stream.Collectors;
41-
4241
import static java.nio.charset.StandardCharsets.UTF_8;
4342

4443
/**
@@ -335,8 +334,7 @@ public ApiClient setScheme(String scheme){
335334
* request builder is passed into this function for further modification,
336335
* after which it is sent out.</p>
337336
*
338-
* <p>This is useful for altering the requests in a custom manner, such as
339-
* adding headers. It could also be used for logging and monitoring.</p>
337+
*
340338
*
341339
* @param interceptor A function invoked before creating each request. A value
342340
* of null resets the interceptor to a no-op.
@@ -360,7 +358,7 @@ public Consumer<HttpRequest.Builder> getRequestInterceptor() {
360358
* Set a custom response interceptor.
361359
*
362360
* <p>This is useful for logging, monitoring or extraction of header variables</p>
363-
* <p>If you are using the UnaryInterceptor you can even manipulate the response to a certain degree</p>
361+
*
364362
* @param interceptor A function invoked before creating each request. A value
365363
* of null resets the interceptor to a no-op.
366364
* @return This object.

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/AuthApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import java.util.Map;
4444
import java.util.Set;
4545
import java.util.Locale;
46-
4746
import java.util.function.Consumer;
4847

4948
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import java.util.Map;
5454
import java.util.Set;
5555
import java.util.Locale;
56-
5756
import java.util.function.Consumer;
5857

5958
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/FormApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import java.util.Map;
5151
import java.util.Set;
5252
import java.util.Locale;
53-
5453
import java.util.function.Consumer;
5554

5655
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import java.util.Map;
5151
import java.util.Set;
5252
import java.util.Locale;
53-
5453
import java.util.function.Consumer;
5554

5655
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import java.util.Map;
5151
import java.util.Set;
5252
import java.util.Locale;
53-
5453
import java.util.function.Consumer;
5554

5655
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
import java.util.Map;
5757
import java.util.Set;
5858
import java.util.Locale;
59-
6059
import java.util.function.Consumer;
6160

6261
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")

samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/ApiClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import java.util.Optional;
3939
import java.util.zip.GZIPInputStream;
4040
import java.util.stream.Collectors;
41-
4241
import static java.nio.charset.StandardCharsets.UTF_8;
4342

4443
/**
@@ -335,8 +334,7 @@ public ApiClient setScheme(String scheme){
335334
* request builder is passed into this function for further modification,
336335
* after which it is sent out.</p>
337336
*
338-
* <p>This is useful for altering the requests in a custom manner, such as
339-
* adding headers. It could also be used for logging and monitoring.</p>
337+
*
340338
*
341339
* @param interceptor A function invoked before creating each request. A value
342340
* of null resets the interceptor to a no-op.
@@ -360,7 +358,7 @@ public Consumer<HttpRequest.Builder> getRequestInterceptor() {
360358
* Set a custom response interceptor.
361359
*
362360
* <p>This is useful for logging, monitoring or extraction of header variables</p>
363-
* <p>If you are using the UnaryInterceptor you can even manipulate the response to a certain degree</p>
361+
*
364362
* @param interceptor A function invoked before creating each request. A value
365363
* of null resets the interceptor to a no-op.
366364
* @return This object.

0 commit comments

Comments
 (0)