Skip to content

Commit 3397d12

Browse files
committed
update samples
1 parent fdda9fc commit 3397d12

48 files changed

Lines changed: 48 additions & 192 deletions

Some content is hidden

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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/AdditionalPropertiesAnyType.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(@Nullable 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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/AdditionalPropertiesArray.java

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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/AdditionalPropertiesBoolean.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(@Nullable 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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/AdditionalPropertiesClass.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,7 @@ public String toString() {
402402
* (except the first line).
403403
*/
404404
private String toIndentedString(@Nullable Object o) {
405-
if (o == null) {
406-
return "null";
407-
}
408-
return o.toString().replace("\n", "\n ");
405+
return o == null ? "null" : o.toString().replace("\n", "\n ");
409406
}
410407
}
411408

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/AdditionalPropertiesInteger.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(@Nullable 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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/AdditionalPropertiesNumber.java

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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/AdditionalPropertiesObject.java

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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/AdditionalPropertiesString.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(@Nullable 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

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/Animal.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,7 @@ public String toString() {
122122
* (except the first line).
123123
*/
124124
private String toIndentedString(@Nullable Object o) {
125-
if (o == null) {
126-
return "null";
127-
}
128-
return o.toString().replace("\n", "\n ");
125+
return o == null ? "null" : o.toString().replace("\n", "\n ");
129126
}
130127
}
131128

samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ public String toString() {
8686
* (except the first line).
8787
*/
8888
private String toIndentedString(@Nullable Object o) {
89-
if (o == null) {
90-
return "null";
91-
}
92-
return o.toString().replace("\n", "\n ");
89+
return o == null ? "null" : o.toString().replace("\n", "\n ");
9390
}
9491
}
9592

0 commit comments

Comments
 (0)