Skip to content

Commit 2909915

Browse files
committed
Generate java-* Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com>
1 parent 365be8b commit 2909915

File tree

66 files changed

+66
-264
lines changed

Some content is hidden

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

66 files changed

+66
-264
lines changed

samples/client/others/java/restclient-sealedInterface/src/main/java/org/openapitools/client/model/Foo.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,7 @@ public String toString() {
174174
* (except the first line).
175175
*/
176176
private String toIndentedString(Object o) {
177-
if (o == null) {
178-
return "null";
179-
}
180-
return o.toString().replace("\n", "\n ");
177+
return o == null ? "null" : o.toString().replace("\n", "\n ");
181178
}
182179

183180
}

samples/client/others/java/restclient-sealedInterface/src/main/java/org/openapitools/client/model/FooRef.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ public String toString() {
142142
* (except the first line).
143143
*/
144144
private String toIndentedString(Object o) {
145-
if (o == null) {
146-
return "null";
147-
}
148-
return o.toString().replace("\n", "\n ");
145+
return o == null ? "null" : o.toString().replace("\n", "\n ");
149146
}
150147

151148
}

samples/client/others/java/restclient-sealedInterface/src/main/java/org/openapitools/client/model/Pasta.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ public String toString() {
142142
* (except the first line).
143143
*/
144144
private String toIndentedString(Object o) {
145-
if (o == null) {
146-
return "null";
147-
}
148-
return o.toString().replace("\n", "\n ");
145+
return o == null ? "null" : o.toString().replace("\n", "\n ");
149146
}
150147

151148
}

samples/client/others/java/restclient-sealedInterface/src/main/java/org/openapitools/client/model/Pizza.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,7 @@ public String toString() {
146146
* (except the first line).
147147
*/
148148
private String toIndentedString(Object o) {
149-
if (o == null) {
150-
return "null";
151-
}
152-
return o.toString().replace("\n", "\n ");
149+
return o == null ? "null" : o.toString().replace("\n", "\n ");
153150
}
154151

155152
}

samples/client/others/java/restclient-sealedInterface/src/main/java/org/openapitools/client/model/PizzaSpeziale.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,7 @@ public String toString() {
143143
* (except the first line).
144144
*/
145145
private String toIndentedString(Object o) {
146-
if (o == null) {
147-
return "null";
148-
}
149-
return o.toString().replace("\n", "\n ");
146+
return o == null ? "null" : o.toString().replace("\n", "\n ");
150147
}
151148

152149
}

samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,7 @@ public String toString() {
140140
* (except the first line).
141141
*/
142142
private String toIndentedString(Object o) {
143-
if (o == null) {
144-
return "null";
145-
}
146-
return o.toString().replace("\n", "\n ");
143+
return o == null ? "null" : o.toString().replace("\n", "\n ");
147144
}
148145

149146
}

samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/Foo.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ public String toString() {
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
}

samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ public String toString() {
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
}

samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/FormatTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,10 +606,7 @@ public String toString() {
606606
* (except the first line).
607607
*/
608608
private String toIndentedString(Object o) {
609-
if (o == null) {
610-
return "null";
611-
}
612-
return o.toString().replace("\n", "\n ");
609+
return o == null ? "null" : o.toString().replace("\n", "\n ");
613610
}
614611

615612
}

samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ public String toString() {
117117
* (except the first line).
118118
*/
119119
private String toIndentedString(Object o) {
120-
if (o == null) {
121-
return "null";
122-
}
123-
return o.toString().replace("\n", "\n ");
120+
return o == null ? "null" : o.toString().replace("\n", "\n ");
124121
}
125122

126123
}

0 commit comments

Comments
 (0)