Skip to content

Commit 66710d3

Browse files
committed
Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
1 parent 9cc0c1b commit 66710d3

4 files changed

Lines changed: 4 additions & 16 deletions

File tree

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 String.valueOf(o).replace("\n", "\n ");
104101
}
105102

106103
public boolean equals(Object o) {

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 String.valueOf(o).replace("\n", "\n ");
104101
}
105102

106103
public boolean equals(Object o) {

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 String.valueOf(o).replace("\n", "\n ");
10299
}
103100

104101
public boolean equals(Object o) {

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 String.valueOf(o).replace("\n", "\n ");
10198
}
10299

103100
public boolean equals(Object o) {

0 commit comments

Comments
 (0)