Skip to content

Commit 1fbe282

Browse files
committed
Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
1 parent 0381b6a commit 1fbe282

3,108 files changed

Lines changed: 3108 additions & 12432 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/resources/java-dubbo/model.mustache

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{^parent}}
8282
* (except the first line).
8383
*/
8484
private String toIndentedString(Object o) {
85-
if (o == null) {
86-
return "null";
87-
}
88-
return o.toString().replace("\n", "\n ");
85+
return String.valueOf(o).replace("\n", "\n ");
8986
}
9087
}
9188
{{/model}}

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Bird.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ public String toString() {
130130
* (except the first line).
131131
*/
132132
private String toIndentedString(Object o) {
133-
if (o == null) {
134-
return "null";
135-
}
136-
return o.toString().replace("\n", "\n ");
133+
return String.valueOf(o).replace("\n", "\n ");
137134
}
138135

139136
/**

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Category.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ public String toString() {
130130
* (except the first line).
131131
*/
132132
private String toIndentedString(Object o) {
133-
if (o == null) {
134-
return "null";
135-
}
136-
return o.toString().replace("\n", "\n ");
133+
return String.valueOf(o).replace("\n", "\n ");
137134
}
138135

139136
/**

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DataQuery.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ public String toString() {
182182
* (except the first line).
183183
*/
184184
private String toIndentedString(Object o) {
185-
if (o == null) {
186-
return "null";
187-
}
188-
return o.toString().replace("\n", "\n ");
185+
return String.valueOf(o).replace("\n", "\n ");
189186
}
190187

191188
/**

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,7 @@ public String toString() {
466466
* (except the first line).
467467
*/
468468
private String toIndentedString(Object o) {
469-
if (o == null) {
470-
return "null";
471-
}
472-
return o.toString().replace("\n", "\n ");
469+
return String.valueOf(o).replace("\n", "\n ");
473470
}
474471

475472
/**

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/NumberPropertiesOnly.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,7 @@ public String toString() {
165165
* (except the first line).
166166
*/
167167
private String toIndentedString(Object o) {
168-
if (o == null) {
169-
return "null";
170-
}
171-
return o.toString().replace("\n", "\n ");
168+
return String.valueOf(o).replace("\n", "\n ");
172169
}
173170

174171
/**

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,7 @@ public String toString() {
316316
* (except the first line).
317317
*/
318318
private String toIndentedString(Object o) {
319-
if (o == null) {
320-
return "null";
321-
}
322-
return o.toString().replace("\n", "\n ");
319+
return String.valueOf(o).replace("\n", "\n ");
323320
}
324321

325322
/**

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ public String toString() {
178178
* (except the first line).
179179
*/
180180
private String toIndentedString(Object o) {
181-
if (o == null) {
182-
return "null";
183-
}
184-
return o.toString().replace("\n", "\n ");
181+
return String.valueOf(o).replace("\n", "\n ");
185182
}
186183

187184
/**

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Tag.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ public String toString() {
130130
* (except the first line).
131131
*/
132132
private String toIndentedString(Object o) {
133-
if (o == null) {
134-
return "null";
135-
}
136-
return o.toString().replace("\n", "\n ");
133+
return String.valueOf(o).replace("\n", "\n ");
137134
}
138135

139136
/**

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/TestFormObjectMultipartRequestMarker.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ public String toString() {
9999
* (except the first line).
100100
*/
101101
private String toIndentedString(Object o) {
102-
if (o == null) {
103-
return "null";
104-
}
105-
return o.toString().replace("\n", "\n ");
102+
return String.valueOf(o).replace("\n", "\n ");
106103
}
107104

108105
/**

0 commit comments

Comments
 (0)