Skip to content

Commit 6a4db4c

Browse files
committed
Merge branch 'master' into bugfix/22859-Spring-HTTP-Interface-library-must-support-useBeanValidation2
2 parents 5d4b1cb + 6332eab commit 6a4db4c

5,075 files changed

Lines changed: 5436 additions & 20394 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttp4ClientCodegen.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.openapitools.codegen.languages;
218

319
import io.swagger.v3.oas.models.Operation;
@@ -155,7 +171,8 @@ public void processOpts() {
155171
supportingFiles.add(new SupportingFile("jsonSupport.mustache", invokerFolder, "JsonSupport.scala"));
156172
supportingFiles.add(new SupportingFile("additionalTypeSerializers.mustache", invokerFolder, "AdditionalTypeSerializers.scala"));
157173
supportingFiles.add(new SupportingFile("project/build.properties.mustache", "project", "build.properties"));
158-
supportingFiles.add(new SupportingFile("dateSerializers.mustache", invokerFolder, "DateSerializers.scala"));
174+
supportingFiles.add(new SupportingFile("project/plugins.mustache", "project", "plugins.sbt"));
175+
supportingFiles.add(new SupportingFile("scalafmt.mustache", "", ".scalafmt.conf"));
159176
}
160177

161178
@Override

modules/openapi-generator/src/main/resources/Java/libraries/feign/pojo.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
318318
* (except the first line).
319319
*/
320320
private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) {
321-
if (o == null) {
322-
return "null";
323-
}
324-
return o.toString().replace("\n", "\n ");
321+
return o == null ? "null" : o.toString().replace("\n", "\n ");
325322
}
326323
{{#supportUrlQuery}}
327324

modules/openapi-generator/src/main/resources/Java/libraries/jersey2/AbstractOpenApiSchema.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ public abstract class AbstractOpenApiSchema {
9797
* (except the first line).
9898
*/
9999
private String toIndentedString(Object o) {
100-
if (o == null) {
101-
return "null";
102-
}
103-
return o.toString().replace("\n", "\n ");
100+
return o == null ? "null" : o.toString().replace("\n", "\n ");
104101
}
105102

106103
public boolean equals(Object o) {

modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
338338
* (except the first line).
339339
*/
340340
private String toIndentedString(Object o) {
341-
if (o == null) {
342-
return "null";
343-
}
344-
return o.toString().replace("\n", "\n ");
341+
return o == null ? "null" : o.toString().replace("\n", "\n ");
345342
}
346343
347344
{{#parcelableModel}}

modules/openapi-generator/src/main/resources/Java/libraries/jersey3/AbstractOpenApiSchema.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ public abstract class AbstractOpenApiSchema {
9797
* (except the first line).
9898
*/
9999
private String toIndentedString(Object o) {
100-
if (o == null) {
101-
return "null";
102-
}
103-
return o.toString().replace("\n", "\n ");
100+
return o == null ? "null" : o.toString().replace("\n", "\n ");
104101
}
105102

106103
public boolean equals(Object o) {

modules/openapi-generator/src/main/resources/Java/libraries/jersey3/pojo.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
338338
* (except the first line).
339339
*/
340340
private String toIndentedString(Object o) {
341-
if (o == null) {
342-
return "null";
343-
}
344-
return o.toString().replace("\n", "\n ");
341+
return o == null ? "null" : o.toString().replace("\n", "\n ");
345342
}
346343
347344
{{#parcelableModel}}

modules/openapi-generator/src/main/resources/Java/libraries/microprofile/pojoOverrides.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,5 @@
6363
* (except the first line).
6464
*/
6565
private static String toIndentedString(Object o) {
66-
if (o == null) {
67-
return "null";
68-
}
69-
return o.toString().replace("\n", "\n ");
66+
return o == null ? "null" : o.toString().replace("\n", "\n ");
7067
}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ public abstract class AbstractOpenApiSchema {
9595
* (except the first line).
9696
*/
9797
private String toIndentedString(Object o) {
98-
if (o == null) {
99-
return "null";
100-
}
101-
return o.toString().replace("\n", "\n ");
98+
return o == null ? "null" : o.toString().replace("\n", "\n ");
10299
}
103100

104101
public boolean equals(Object o) {

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
342342
* (except the first line).
343343
*/
344344
private String toIndentedString(Object o) {
345-
if (o == null) {
346-
return "null";
347-
}
348-
return o.toString().replace("\n", "\n ");
345+
return o == null ? "null" : o.toString().replace("\n", "\n ");
349346
}
350347
{{#supportUrlQuery}}
351348

modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/AbstractOpenApiSchema.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ public abstract class AbstractOpenApiSchema {
9494
* (except the first line).
9595
*/
9696
private String toIndentedString(Object o) {
97-
if (o == null) {
98-
return "null";
99-
}
100-
return o.toString().replace("\n", "\n ");
97+
return o == null ? "null" : o.toString().replace("\n", "\n ");
10198
}
10299

103100
public boolean equals(Object o) {

0 commit comments

Comments
 (0)