Skip to content

Commit aef0bf6

Browse files
adjusting newlines
1 parent 99b295a commit aef0bf6

6 files changed

Lines changed: 18 additions & 12 deletions

File tree

  • modules/openapi-generator/src/main/resources/Java/libraries/native
  • samples/client

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import java.util.stream.Collectors;
4040
{{#useUnaryInterceptor}}
4141
import java.util.function.UnaryOperator;
4242
{{/useUnaryInterceptor}}
43+
4344
import static java.nio.charset.StandardCharsets.UTF_8;
4445

4546
/**
@@ -74,7 +75,6 @@ public class ApiClient {
7475
protected Consumer<HttpResponse<InputStream>> responseInterceptor;
7576
protected Consumer<HttpResponse<InputStream>> asyncResponseInterceptor;
7677
{{/useUnaryInterceptor}}
77-
7878
protected Duration readTimeout;
7979
protected Duration connectTimeout;
8080

@@ -345,7 +345,8 @@ public class ApiClient {
345345
* request builder is passed into this function for further modification,
346346
* after which it is sent out.</p>
347347
*
348-
*<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>
348+
* <p>This is useful for altering the requests in a custom manner, such as
349+
* adding headers. It could also be used for logging and monitoring.</p>
349350
*
350351
* @param interceptor A function invoked before creating each request. A value
351352
* of null resets the interceptor to a no-op.

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

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

4344
/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566
protected Consumer<HttpRequest.Builder> interceptor;
6667
protected Consumer<HttpResponse<InputStream>> responseInterceptor;
6768
protected Consumer<HttpResponse<InputStream>> asyncResponseInterceptor;
68-
6969
protected Duration readTimeout;
7070
protected Duration connectTimeout;
7171

@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334
* request builder is passed into this function for further modification,
335335
* after which it is sent out.</p>
336336
*
337-
*<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>
337+
* <p>This is useful for altering the requests in a custom manner, such as
338+
* adding headers. It could also be used for logging and monitoring.</p>
338339
*
339340
* @param interceptor A function invoked before creating each request. A value
340341
* of null resets the interceptor to a no-op.

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

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

4344
/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566
protected Consumer<HttpRequest.Builder> interceptor;
6667
protected Consumer<HttpResponse<InputStream>> responseInterceptor;
6768
protected Consumer<HttpResponse<InputStream>> asyncResponseInterceptor;
68-
6969
protected Duration readTimeout;
7070
protected Duration connectTimeout;
7171

@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334
* request builder is passed into this function for further modification,
335335
* after which it is sent out.</p>
336336
*
337-
*<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>
337+
* <p>This is useful for altering the requests in a custom manner, such as
338+
* adding headers. It could also be used for logging and monitoring.</p>
338339
*
339340
* @param interceptor A function invoked before creating each request. A value
340341
* of null resets the interceptor to a no-op.

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

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

4344
/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566
protected Consumer<HttpRequest.Builder> interceptor;
6667
protected Consumer<HttpResponse<InputStream>> responseInterceptor;
6768
protected Consumer<HttpResponse<InputStream>> asyncResponseInterceptor;
68-
6969
protected Duration readTimeout;
7070
protected Duration connectTimeout;
7171

@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334
* request builder is passed into this function for further modification,
335335
* after which it is sent out.</p>
336336
*
337-
*<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>
337+
* <p>This is useful for altering the requests in a custom manner, such as
338+
* adding headers. It could also be used for logging and monitoring.</p>
338339
*
339340
* @param interceptor A function invoked before creating each request. A value
340341
* of null resets the interceptor to a no-op.

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

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

4344
/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566
protected Consumer<HttpRequest.Builder> interceptor;
6667
protected Consumer<HttpResponse<InputStream>> responseInterceptor;
6768
protected Consumer<HttpResponse<InputStream>> asyncResponseInterceptor;
68-
6969
protected Duration readTimeout;
7070
protected Duration connectTimeout;
7171

@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334
* request builder is passed into this function for further modification,
335335
* after which it is sent out.</p>
336336
*
337-
*<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>
337+
* <p>This is useful for altering the requests in a custom manner, such as
338+
* adding headers. It could also be used for logging and monitoring.</p>
338339
*
339340
* @param interceptor A function invoked before creating each request. A value
340341
* of null resets the interceptor to a no-op.

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

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

4344
/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566
protected Consumer<HttpRequest.Builder> interceptor;
6667
protected Consumer<HttpResponse<InputStream>> responseInterceptor;
6768
protected Consumer<HttpResponse<InputStream>> asyncResponseInterceptor;
68-
6969
protected Duration readTimeout;
7070
protected Duration connectTimeout;
7171

@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334
* request builder is passed into this function for further modification,
335335
* after which it is sent out.</p>
336336
*
337-
*<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>
337+
* <p>This is useful for altering the requests in a custom manner, such as
338+
* adding headers. It could also be used for logging and monitoring.</p>
338339
*
339340
* @param interceptor A function invoked before creating each request. A value
340341
* of null resets the interceptor to a no-op.

0 commit comments

Comments
 (0)