Skip to content

Commit 9c4dc33

Browse files
committed
Generate spring* Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
1 parent e53b892 commit 9c4dc33

File tree

1,408 files changed

+1408
-5632
lines changed

Some content is hidden

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

1,408 files changed

+1408
-5632
lines changed

samples/client/petstore/spring-cloud-date-time/src/main/java/org/openapitools/model/Pet.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,7 @@ public String toString() {
219219
* (except the first line).
220220
*/
221221
private String toIndentedString(@Nullable Object o) {
222-
if (o == null) {
223-
return "null";
224-
}
225-
return o.toString().replace("\n", "\n ");
222+
return o == null ? "null" : o.toString().replace("\n", "\n ");
226223
}
227224
}
228225

samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Category.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ public String toString() {
102102
* (except the first line).
103103
*/
104104
private String toIndentedString(@Nullable Object o) {
105-
if (o == null) {
106-
return "null";
107-
}
108-
return o.toString().replace("\n", "\n ");
105+
return o == null ? "null" : o.toString().replace("\n", "\n ");
109106
}
110107
}
111108

samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/ModelApiResponse.java

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

samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Order.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,7 @@ public String toString() {
245245
* (except the first line).
246246
*/
247247
private String toIndentedString(@Nullable Object o) {
248-
if (o == null) {
249-
return "null";
250-
}
251-
return o.toString().replace("\n", "\n ");
248+
return o == null ? "null" : o.toString().replace("\n", "\n ");
252249
}
253250
}
254251

samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Pet.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,7 @@ public String toString() {
282282
* (except the first line).
283283
*/
284284
private String toIndentedString(@Nullable Object o) {
285-
if (o == null) {
286-
return "null";
287-
}
288-
return o.toString().replace("\n", "\n ");
285+
return o == null ? "null" : o.toString().replace("\n", "\n ");
289286
}
290287
}
291288

samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/Tag.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ public String toString() {
102102
* (except the first line).
103103
*/
104104
private String toIndentedString(@Nullable Object o) {
105-
if (o == null) {
106-
return "null";
107-
}
108-
return o.toString().replace("\n", "\n ");
105+
return o == null ? "null" : o.toString().replace("\n", "\n ");
109106
}
110107
}
111108

samples/client/petstore/spring-cloud-deprecated/src/main/java/org/openapitools/model/User.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,7 @@ public String toString() {
252252
* (except the first line).
253253
*/
254254
private String toIndentedString(@Nullable Object o) {
255-
if (o == null) {
256-
return "null";
257-
}
258-
return o.toString().replace("\n", "\n ");
255+
return o == null ? "null" : o.toString().replace("\n", "\n ");
259256
}
260257
}
261258

samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Category.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ public String toString() {
103103
* (except the first line).
104104
*/
105105
private String toIndentedString(@Nullable Object o) {
106-
if (o == null) {
107-
return "null";
108-
}
109-
return o.toString().replace("\n", "\n ");
106+
return o == null ? "null" : o.toString().replace("\n", "\n ");
110107
}
111108
}
112109

samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/ModelApiResponse.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(@Nullable Object o) {
133-
if (o == null) {
134-
return "null";
135-
}
136-
return o.toString().replace("\n", "\n ");
133+
return o == null ? "null" : o.toString().replace("\n", "\n ");
137134
}
138135
}
139136

samples/client/petstore/spring-cloud-feign-without-url/src/main/java/org/openapitools/model/Order.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,7 @@ public String toString() {
244244
* (except the first line).
245245
*/
246246
private String toIndentedString(@Nullable Object o) {
247-
if (o == null) {
248-
return "null";
249-
}
250-
return o.toString().replace("\n", "\n ");
247+
return o == null ? "null" : o.toString().replace("\n", "\n ");
251248
}
252249
}
253250

0 commit comments

Comments
 (0)