Skip to content

Commit f5d00fd

Browse files
committed
regenerate samples
1 parent d44e5d5 commit f5d00fd

2 files changed

Lines changed: 0 additions & 71 deletions

File tree

bin/configs/spring-boot-useOneOfExtensibleEnum.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ additionalProperties:
1010
useBeanValidation: true
1111
artifactId: spring-boot-useoneofextensibleenum
1212
hideGenerationTimestamp: "true"
13-
generateBuilders: true

samples/server/petstore/springboot-useOneOfExtensibleEnum/src/main/java/org/openapitools/model/Address.java

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -131,75 +131,5 @@ private String toIndentedString(Object o) {
131131
}
132132
return o.toString().replace("\n", "\n ");
133133
}
134-
135-
public static class Builder {
136-
137-
private Address instance;
138-
139-
public Builder() {
140-
this(new Address());
141-
}
142-
143-
protected Builder(Address instance) {
144-
this.instance = instance;
145-
}
146-
147-
protected Builder copyOf(Address value) {
148-
this.instance.setStreet(value.street);
149-
this.instance.setCountryOrString(value.countryOrString);
150-
this.instance.setCountryOrOther(value.countryOrOther);
151-
return this;
152-
}
153-
154-
public Address.Builder street(String street) {
155-
this.instance.street(street);
156-
return this;
157-
}
158-
159-
public Address.Builder countryOrString(Country countryOrString) {
160-
this.instance.countryOrString(countryOrString);
161-
return this;
162-
}
163-
164-
public Address.Builder countryOrOther(CountryOrOther countryOrOther) {
165-
this.instance.countryOrOther(countryOrOther);
166-
return this;
167-
}
168-
169-
/**
170-
* returns a built Address instance.
171-
*
172-
* The builder is not reusable (NullPointerException)
173-
*/
174-
public Address build() {
175-
try {
176-
return this.instance;
177-
} finally {
178-
// ensure that this.instance is not reused
179-
this.instance = null;
180-
}
181-
}
182-
183-
@Override
184-
public String toString() {
185-
return getClass() + "=(" + instance + ")";
186-
}
187-
}
188-
189-
/**
190-
* Create a builder with no initialized field (except for the default values).
191-
*/
192-
public static Address.Builder builder() {
193-
return new Address.Builder();
194-
}
195-
196-
/**
197-
* Create a builder with a shallow copy of this instance.
198-
*/
199-
public Address.Builder toBuilder() {
200-
Address.Builder builder = new Address.Builder();
201-
return builder.copyOf(this);
202-
}
203-
204134
}
205135

0 commit comments

Comments
 (0)