From eb9638092865c71820325e1cf26ee2a6e62a9ba9 Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Tue, 7 Jan 2025 14:36:19 +0100 Subject: [PATCH] [Java] Remove bean validation annotations on builder (#19580) * Revert #18724 Make JAX-RS spec BuilderImpl class final again * Remove bean validation annotations from builder * Also update other java generators * Introduce removeAnnotations lambda * Undo import changes to JavaHelidonClientCodegen * Add javadoc comment, examples and test for AbstractJavaCodegen.removeAnnotations() --- .../languages/AbstractJavaCodegen.java | 35 +++++++++++++------ .../main/resources/Java/javaBuilder.mustache | 10 +++--- .../resources/JavaJaxRS/spec/pojo.mustache | 6 ++-- .../resources/JavaSpring/javaBuilder.mustache | 8 ++--- .../codegen/java/AbstractJavaCodegenTest.java | 10 ++++++ .../main/java/org/openapitools/model/Pet.java | 2 +- .../model/AdditionalPropertiesClass.java | 2 +- .../java/org/openapitools/model/Animal.java | 2 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 ++-- .../java/org/openapitools/model/BigCat.java | 2 +- .../openapitools/model/Capitalization.java | 2 +- .../gen/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/Category.java | 2 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../gen/java/org/openapitools/model/Dog.java | 2 +- .../org/openapitools/model/EnumArrays.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../model/FileSchemaTestClass.java | 6 ++-- .../org/openapitools/model/FormatTest.java | 2 +- .../openapitools/model/HasOnlyReadOnly.java | 2 +- .../java/org/openapitools/model/MapTest.java | 2 +- ...ropertiesAndAdditionalPropertiesClass.java | 2 +- .../openapitools/model/Model200Response.java | 2 +- .../openapitools/model/ModelApiResponse.java | 2 +- .../org/openapitools/model/ModelFile.java | 2 +- .../org/openapitools/model/ModelList.java | 2 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../gen/java/org/openapitools/model/Name.java | 2 +- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 2 +- .../openapitools/model/OuterComposite.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 6 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 2 +- .../openapitools/model/SpecialModelName.java | 2 +- .../gen/java/org/openapitools/model/Tag.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../gen/java/org/openapitools/model/User.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 2 +- .../model/AdditionalPropertiesClass.java | 2 +- .../java/org/openapitools/model/Animal.java | 2 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 ++-- .../java/org/openapitools/model/BigCat.java | 2 +- .../openapitools/model/Capitalization.java | 2 +- .../gen/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/Category.java | 2 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../gen/java/org/openapitools/model/Dog.java | 2 +- .../org/openapitools/model/EnumArrays.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../model/FileSchemaTestClass.java | 6 ++-- .../org/openapitools/model/FormatTest.java | 2 +- .../openapitools/model/HasOnlyReadOnly.java | 2 +- .../java/org/openapitools/model/MapTest.java | 2 +- ...ropertiesAndAdditionalPropertiesClass.java | 2 +- .../openapitools/model/Model200Response.java | 2 +- .../openapitools/model/ModelApiResponse.java | 2 +- .../org/openapitools/model/ModelFile.java | 2 +- .../org/openapitools/model/ModelList.java | 2 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../gen/java/org/openapitools/model/Name.java | 2 +- .../org/openapitools/model/NumberOnly.java | 2 +- .../java/org/openapitools/model/Order.java | 2 +- .../openapitools/model/OuterComposite.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 6 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 2 +- .../openapitools/model/SpecialModelName.java | 2 +- .../gen/java/org/openapitools/model/Tag.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../gen/java/org/openapitools/model/User.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 2 +- .../model/AdditionalPropertiesClass.java | 2 +- .../model/AllOfWithSingleRef.java | 2 +- .../java/org/openapitools/model/Animal.java | 2 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 ++-- .../openapitools/model/Capitalization.java | 2 +- .../gen/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/Category.java | 2 +- .../openapitools/model/ChildWithNullable.java | 2 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../openapitools/model/DeprecatedObject.java | 2 +- .../gen/java/org/openapitools/model/Dog.java | 2 +- .../org/openapitools/model/EnumArrays.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../model/FakeBigDecimalMap200Response.java | 2 +- .../model/FileSchemaTestClass.java | 6 ++-- .../gen/java/org/openapitools/model/Foo.java | 2 +- .../model/FooGetDefaultResponse.java | 2 +- .../org/openapitools/model/FormatTest.java | 2 +- .../openapitools/model/HasOnlyReadOnly.java | 2 +- .../openapitools/model/HealthCheckResult.java | 2 +- .../java/org/openapitools/model/MapTest.java | 2 +- ...ropertiesAndAdditionalPropertiesClass.java | 2 +- .../openapitools/model/Model200Response.java | 2 +- .../openapitools/model/ModelApiResponse.java | 2 +- .../org/openapitools/model/ModelFile.java | 2 +- .../org/openapitools/model/ModelList.java | 2 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../gen/java/org/openapitools/model/Name.java | 2 +- .../org/openapitools/model/NumberOnly.java | 2 +- .../model/ObjectWithDeprecatedFields.java | 2 +- .../java/org/openapitools/model/Order.java | 2 +- .../openapitools/model/OuterComposite.java | 2 +- .../model/OuterObjectWithEnumProperty.java | 2 +- .../model/ParentWithNullable.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 6 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 2 +- .../openapitools/model/SpecialModelName.java | 2 +- .../gen/java/org/openapitools/model/Tag.java | 2 +- .../gen/java/org/openapitools/model/User.java | 2 +- .../model/ReadonlyAndRequiredProperties.java | 2 +- .../model/AdditionalPropertiesClass.java | 2 +- .../model/AllOfWithSingleRef.java | 2 +- .../java/org/openapitools/model/Animal.java | 2 +- .../model/ArrayOfArrayOfNumberOnly.java | 2 +- .../openapitools/model/ArrayOfNumberOnly.java | 2 +- .../org/openapitools/model/ArrayTest.java | 6 ++-- .../openapitools/model/Capitalization.java | 2 +- .../gen/java/org/openapitools/model/Cat.java | 2 +- .../java/org/openapitools/model/Category.java | 2 +- .../openapitools/model/ChildWithNullable.java | 2 +- .../org/openapitools/model/ClassModel.java | 2 +- .../java/org/openapitools/model/Client.java | 2 +- .../openapitools/model/DeprecatedObject.java | 2 +- .../gen/java/org/openapitools/model/Dog.java | 2 +- .../org/openapitools/model/EnumArrays.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../model/FakeBigDecimalMap200Response.java | 2 +- .../FakeTestsDefaultsDefaultResponse.java | 2 +- .../model/FileSchemaTestClass.java | 6 ++-- .../gen/java/org/openapitools/model/Foo.java | 2 +- .../model/FooGetDefaultResponse.java | 2 +- .../org/openapitools/model/FormatTest.java | 2 +- .../openapitools/model/HasOnlyReadOnly.java | 2 +- .../openapitools/model/HealthCheckResult.java | 2 +- .../java/org/openapitools/model/MapTest.java | 2 +- ...ropertiesAndAdditionalPropertiesClass.java | 2 +- .../openapitools/model/Model200Response.java | 2 +- .../openapitools/model/ModelApiResponse.java | 2 +- .../org/openapitools/model/ModelFile.java | 2 +- .../org/openapitools/model/ModelList.java | 2 +- .../org/openapitools/model/ModelReturn.java | 2 +- .../gen/java/org/openapitools/model/Name.java | 2 +- .../org/openapitools/model/NumberOnly.java | 2 +- .../model/ObjectWithDeprecatedFields.java | 2 +- .../java/org/openapitools/model/Order.java | 2 +- .../openapitools/model/OuterComposite.java | 2 +- .../model/OuterObjectWithEnumProperty.java | 2 +- .../model/ParentWithNullable.java | 2 +- .../gen/java/org/openapitools/model/Pet.java | 6 ++-- .../org/openapitools/model/ReadOnlyFirst.java | 2 +- .../openapitools/model/SpecialModelName.java | 2 +- .../gen/java/org/openapitools/model/Tag.java | 2 +- .../gen/java/org/openapitools/model/User.java | 2 +- .../org/openapitools/model/ArrayTest.java | 2 +- .../model/FileSchemaTestClass.java | 2 +- .../main/java/org/openapitools/model/Pet.java | 2 +- 167 files changed, 233 insertions(+), 208 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java index 960a5c8d71a2..a3aef4be97a2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java @@ -657,6 +657,9 @@ public void processOpts() { } writer.write(content); }); + additionalProperties.put("removeAnnotations", (Mustache.Lambda) (fragment, writer) -> { + writer.write(removeAnnotations(fragment.execute())); + }); } /** @@ -1802,18 +1805,30 @@ public void postProcessResponseWithProperty(CodegenResponse response, CodegenPro return; } - // the response data types should not contain a bean validation annotation. - if (property.dataType.contains("@")) { - property.dataType = removeAnnotations(property.dataType); - } - // the response data types should not contain a bean validation annotation. - if (response.dataType.contains("@")) { - response.dataType = removeAnnotations(response.dataType); - } + // the response data types should not contain bean validation annotations. + property.dataType = removeAnnotations(property.dataType); + response.dataType = removeAnnotations(response.dataType); } - private String removeAnnotations(String type) { - return type.replaceAll("(?:(?i)@[a-z0-9]*+([(].*[)]|\\s*))*+", ""); + /** + * Remove annotations from the given data type string. + * + * For example: + * + * + * @param dataType the data type string + * @return the data type string without annotations + */ + public String removeAnnotations(String dataType) { + if (dataType != null && dataType.contains("@")) { + return dataType.replaceAll("(?:(?i)@[a-z0-9]*+([(].*[)]|\\s*))*+", ""); + } + return dataType; } @Override diff --git a/modules/openapi-generator/src/main/resources/Java/javaBuilder.mustache b/modules/openapi-generator/src/main/resources/Java/javaBuilder.mustache index c02730081ca9..4a0e102b893b 100644 --- a/modules/openapi-generator/src/main/resources/Java/javaBuilder.mustache +++ b/modules/openapi-generator/src/main/resources/Java/javaBuilder.mustache @@ -14,9 +14,9 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par } {{#vars}} - public {{classname}}.Builder {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} - this.instance.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); + this.instance.{{name}} = JsonNullable.<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} this.instance.{{name}} = {{name}}; @@ -24,7 +24,7 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par return this; } {{#vendorExtensions.x-is-jackson-optional-nullable}} - public {{classname}}.Builder {{name}}(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + public {{classname}}.Builder {{name}}(JsonNullable<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}> {{name}}) { this.instance.{{name}} = {{name}}; return this; } @@ -32,12 +32,12 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par {{/vars}} {{#parentVars}} - public {{classname}}.Builder {{name}}({{{datatypeWithEnum}}} {{name}}) { // inherited: {{isInherited}} + public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { // inherited: {{isInherited}} super.{{name}}({{name}}); return this; } {{#vendorExtensions.x-is-jackson-optional-nullable}} - public {{classname}}.Builder {{name}}(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + public {{classname}}.Builder {{name}}(JsonNullable<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}> {{name}}) { this.instance.{{name}} = {{name}}; return this; } diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache index 5c36825ab9b2..d97de41fda36 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache @@ -188,7 +188,7 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens return new {{classname}}BuilderImpl(); } - private static class {{classname}}BuilderImpl extends {{classname}}Builder<{{classname}}, {{classname}}BuilderImpl> { + private static final class {{classname}}BuilderImpl extends {{classname}}Builder<{{classname}}, {{classname}}BuilderImpl> { @Override protected {{classname}}BuilderImpl self() { @@ -203,7 +203,7 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens public static abstract class {{classname}}Builder> {{#parent}}extends {{{.}}}Builder{{/parent}} { {{#vars}} - private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; + private {{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vars}} {{^parent}} protected abstract B self(); @@ -212,7 +212,7 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens {{/parent}} {{#vars}} - public B {{name}}({{{datatypeWithEnum}}} {{name}}) { + public B {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { this.{{name}} = {{name}}; return self(); } diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/javaBuilder.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/javaBuilder.mustache index 2b15a6ceeea5..6814c2983c71 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/javaBuilder.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/javaBuilder.mustache @@ -24,12 +24,12 @@ {{#deprecated}} @Deprecated {{/deprecated}} - public {{classname}}.Builder {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { this.instance.{{name}}({{name}}); return this; } {{#openApiNullable}}{{#isNullable}} - public {{classname}}.Builder {{name}}(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + public {{classname}}.Builder {{name}}(JsonNullable<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}> {{name}}) { this.instance.{{name}} = {{name}}; return this; } @@ -37,12 +37,12 @@ {{/vars}} {{#parentVars}} @Override - public {{classname}}.Builder {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { this.instance.{{name}}({{name}}); return this; } {{#openApiNullable}}{{#isNullable}} - public {{classname}}.Builder {{name}}(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) { + public {{classname}}.Builder {{name}}(JsonNullable<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}> {{name}}) { this.instance.{{setter}}({{name}}); return this; } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/AbstractJavaCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/AbstractJavaCodegenTest.java index 5f58dc56c791..8e2a0bb556e1 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/AbstractJavaCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/AbstractJavaCodegenTest.java @@ -955,4 +955,14 @@ public void AnnotationsContainerTest() { defaultValue = codegen.getTypeDeclaration(schema); Assert.assertEquals(defaultValue, "List<@Max(10)Integer>"); } + + @Test + public void removeAnnotationsTest() { + Assert.assertEquals(codegen.removeAnnotations("@Min(0) @Max(10)Integer"), "Integer"); + Assert.assertEquals(codegen.removeAnnotations("@Pattern(regexp = \"^[a-z]$\")String"), "String"); + Assert.assertEquals(codegen.removeAnnotations("List<@Min(0) @Max(10)Integer>"), "List"); + Assert.assertEquals(codegen.removeAnnotations("List<@Pattern(regexp = \"^[a-z]$\")String>"), "List"); + Assert.assertEquals(codegen.removeAnnotations("List<@Valid Pet>"), "List"); + } + } diff --git a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Pet.java b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Pet.java index ca4275af5769..edc5712a2935 100644 --- a/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Pet.java +++ b/samples/openapi3/server/petstore/springboot-3/src/main/java/org/openapitools/model/Pet.java @@ -359,7 +359,7 @@ public Pet.Builder photoUrls(List photoUrls) { return this; } - public Pet.Builder tags(List<@Valid Tag> tags) { + public Pet.Builder tags(List tags) { this.instance.tags(tags); return this; } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 9cf4a3b61657..09b6023b3a16 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -452,7 +452,7 @@ private String toIndentedString(Object o) { return new AdditionalPropertiesClassBuilderImpl(); } - private static class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder { + private static final class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder { @Override protected AdditionalPropertiesClassBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Animal.java index 8e61b7d99dca..335efc86f5f9 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Animal.java @@ -129,7 +129,7 @@ private String toIndentedString(Object o) { return new AnimalBuilderImpl(); } - private static class AnimalBuilderImpl extends AnimalBuilder { + private static final class AnimalBuilderImpl extends AnimalBuilder { @Override protected AnimalBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 155e807edb0a..bbfbc320e315 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -110,7 +110,7 @@ private String toIndentedString(Object o) { return new ArrayOfArrayOfNumberOnlyBuilderImpl(); } - private static class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder { + private static final class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder { @Override protected ArrayOfArrayOfNumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index b7ee1f3c24d2..bd4efc3672e9 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -110,7 +110,7 @@ private String toIndentedString(Object o) { return new ArrayOfNumberOnlyBuilderImpl(); } - private static class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder { + private static final class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder { @Override protected ArrayOfNumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayTest.java index 02c2586cfef3..876660f554f1 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ArrayTest.java @@ -188,7 +188,7 @@ private String toIndentedString(Object o) { return new ArrayTestBuilderImpl(); } - private static class ArrayTestBuilderImpl extends ArrayTestBuilder { + private static final class ArrayTestBuilderImpl extends ArrayTestBuilder { @Override protected ArrayTestBuilderImpl self() { @@ -204,7 +204,7 @@ public ArrayTest build() { public static abstract class ArrayTestBuilder> { private List arrayOfString = new ArrayList<>(); private List> arrayArrayOfInteger = new ArrayList<>(); - private List> arrayArrayOfModel = new ArrayList<>(); + private List> arrayArrayOfModel = new ArrayList<>(); protected abstract B self(); public abstract C build(); @@ -217,7 +217,7 @@ public B arrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return self(); } - public B arrayArrayOfModel(List> arrayArrayOfModel) { + public B arrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/BigCat.java index 1f76e212d098..0462bb289e64 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/BigCat.java @@ -149,7 +149,7 @@ private String toIndentedString(Object o) { return new BigCatBuilderImpl(); } - private static class BigCatBuilderImpl extends BigCatBuilder { + private static final class BigCatBuilderImpl extends BigCatBuilder { @Override protected BigCatBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Capitalization.java index 5f6850e62972..33933be856dc 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Capitalization.java @@ -206,7 +206,7 @@ private String toIndentedString(Object o) { return new CapitalizationBuilderImpl(); } - private static class CapitalizationBuilderImpl extends CapitalizationBuilder { + private static final class CapitalizationBuilderImpl extends CapitalizationBuilder { @Override protected CapitalizationBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Cat.java index 2bbea1f49abe..aafbdbf4f97e 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Cat.java @@ -102,7 +102,7 @@ private String toIndentedString(Object o) { return new CatBuilderImpl(); } - private static class CatBuilderImpl extends CatBuilder { + private static final class CatBuilderImpl extends CatBuilder { @Override protected CatBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Category.java index 69249c3d92c4..dc5c2ad4721e 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Category.java @@ -120,7 +120,7 @@ private String toIndentedString(Object o) { return new CategoryBuilderImpl(); } - private static class CategoryBuilderImpl extends CategoryBuilder { + private static final class CategoryBuilderImpl extends CategoryBuilder { @Override protected CategoryBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ClassModel.java index da0ce42b2b3a..479b7850cc4b 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ClassModel.java @@ -92,7 +92,7 @@ private String toIndentedString(Object o) { return new ClassModelBuilderImpl(); } - private static class ClassModelBuilderImpl extends ClassModelBuilder { + private static final class ClassModelBuilderImpl extends ClassModelBuilder { @Override protected ClassModelBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Client.java index 229848344ddd..63b2812799dc 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Client.java @@ -90,7 +90,7 @@ private String toIndentedString(Object o) { return new ClientBuilderImpl(); } - private static class ClientBuilderImpl extends ClientBuilder { + private static final class ClientBuilderImpl extends ClientBuilder { @Override protected ClientBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Dog.java index 9b07d1ad7b57..78e9bff8a093 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Dog.java @@ -102,7 +102,7 @@ private String toIndentedString(Object o) { return new DogBuilderImpl(); } - private static class DogBuilderImpl extends DogBuilder { + private static final class DogBuilderImpl extends DogBuilder { @Override protected DogBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumArrays.java index 7b8a4456f938..5aed2842b4fa 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumArrays.java @@ -226,7 +226,7 @@ private String toIndentedString(Object o) { return new EnumArraysBuilderImpl(); } - private static class EnumArraysBuilderImpl extends EnumArraysBuilder { + private static final class EnumArraysBuilderImpl extends EnumArraysBuilder { @Override protected EnumArraysBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumTest.java index a8513d5552c1..84e15d22d772 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumTest.java @@ -379,7 +379,7 @@ private String toIndentedString(Object o) { return new EnumTestBuilderImpl(); } - private static class EnumTestBuilderImpl extends EnumTestBuilder { + private static final class EnumTestBuilderImpl extends EnumTestBuilder { @Override protected EnumTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 9e61b58bebc1..c1b8d539de91 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -133,7 +133,7 @@ private String toIndentedString(Object o) { return new FileSchemaTestClassBuilderImpl(); } - private static class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder { + private static final class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder { @Override protected FileSchemaTestClassBuilderImpl self() { @@ -148,7 +148,7 @@ public FileSchemaTestClass build() { public static abstract class FileSchemaTestClassBuilder> { private ModelFile _file; - private List<@Valid ModelFile> files = new ArrayList<>(); + private List files = new ArrayList<>(); protected abstract B self(); public abstract C build(); @@ -157,7 +157,7 @@ public B _file(ModelFile _file) { this._file = _file; return self(); } - public B files(List<@Valid ModelFile> files) { + public B files(List files) { this.files = files; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FormatTest.java index 3aa3eb14bf1b..6ef9b8c84068 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FormatTest.java @@ -419,7 +419,7 @@ private String toIndentedString(Object o) { return new FormatTestBuilderImpl(); } - private static class FormatTestBuilderImpl extends FormatTestBuilder { + private static final class FormatTestBuilderImpl extends FormatTestBuilder { @Override protected FormatTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 26d5156a4804..4a2a4e86bd02 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -114,7 +114,7 @@ private String toIndentedString(Object o) { return new HasOnlyReadOnlyBuilderImpl(); } - private static class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder { + private static final class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder { @Override protected HasOnlyReadOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/MapTest.java index f959aa8ba273..c7ab79207c91 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/MapTest.java @@ -272,7 +272,7 @@ private String toIndentedString(Object o) { return new MapTestBuilderImpl(); } - private static class MapTestBuilderImpl extends MapTestBuilder { + private static final class MapTestBuilderImpl extends MapTestBuilder { @Override protected MapTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 1b82b9abb9b7..42ddbf5f7cc6 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -157,7 +157,7 @@ private String toIndentedString(Object o) { return new MixedPropertiesAndAdditionalPropertiesClassBuilderImpl(); } - private static class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder { + private static final class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder { @Override protected MixedPropertiesAndAdditionalPropertiesClassBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Model200Response.java index 26415bd4aa56..722b4b6112f5 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Model200Response.java @@ -116,7 +116,7 @@ private String toIndentedString(Object o) { return new Model200ResponseBuilderImpl(); } - private static class Model200ResponseBuilderImpl extends Model200ResponseBuilder { + private static final class Model200ResponseBuilderImpl extends Model200ResponseBuilder { @Override protected Model200ResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelApiResponse.java index 0f91ea19f912..8189d6ca091c 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -137,7 +137,7 @@ private String toIndentedString(Object o) { return new ModelApiResponseBuilderImpl(); } - private static class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder { + private static final class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder { @Override protected ModelApiResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelFile.java index 685e1a90ae68..b34f563aed55 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelFile.java @@ -94,7 +94,7 @@ private String toIndentedString(Object o) { return new ModelFileBuilderImpl(); } - private static class ModelFileBuilderImpl extends ModelFileBuilder { + private static final class ModelFileBuilderImpl extends ModelFileBuilder { @Override protected ModelFileBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelList.java index a8a2a9060f2d..eb96542c8c9f 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelList.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new ModelListBuilderImpl(); } - private static class ModelListBuilderImpl extends ModelListBuilder { + private static final class ModelListBuilderImpl extends ModelListBuilder { @Override protected ModelListBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelReturn.java index 10a50fd947f2..4064ffeb9d90 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ModelReturn.java @@ -93,7 +93,7 @@ private String toIndentedString(Object o) { return new ModelReturnBuilderImpl(); } - private static class ModelReturnBuilderImpl extends ModelReturnBuilder { + private static final class ModelReturnBuilderImpl extends ModelReturnBuilder { @Override protected ModelReturnBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Name.java index b3352b7ebd7b..f5631a30d1cc 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Name.java @@ -168,7 +168,7 @@ private String toIndentedString(Object o) { return new NameBuilderImpl(); } - private static class NameBuilderImpl extends NameBuilder { + private static final class NameBuilderImpl extends NameBuilder { @Override protected NameBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/NumberOnly.java index 90410e7227e2..ffa8111f1191 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/NumberOnly.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new NumberOnlyBuilderImpl(); } - private static class NumberOnlyBuilderImpl extends NumberOnlyBuilder { + private static final class NumberOnlyBuilderImpl extends NumberOnlyBuilder { @Override protected NumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Order.java index 3f4c1aa52a43..7eeeec6c2060 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Order.java @@ -254,7 +254,7 @@ private String toIndentedString(Object o) { return new OrderBuilderImpl(); } - private static class OrderBuilderImpl extends OrderBuilder { + private static final class OrderBuilderImpl extends OrderBuilder { @Override protected OrderBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/OuterComposite.java index fdb85193b1d1..5af41415d232 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/OuterComposite.java @@ -137,7 +137,7 @@ private String toIndentedString(Object o) { return new OuterCompositeBuilderImpl(); } - private static class OuterCompositeBuilderImpl extends OuterCompositeBuilder { + private static final class OuterCompositeBuilderImpl extends OuterCompositeBuilder { @Override protected OuterCompositeBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java index 94d876f697f7..39ad8281ce37 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java @@ -303,7 +303,7 @@ private String toIndentedString(Object o) { return new PetBuilderImpl(); } - private static class PetBuilderImpl extends PetBuilder { + private static final class PetBuilderImpl extends PetBuilder { @Override protected PetBuilderImpl self() { @@ -321,7 +321,7 @@ public static abstract class PetBuilder photoUrls = new LinkedHashSet<>(); - private List<@Valid Tag> tags = new ArrayList<>(); + private List tags = new ArrayList<>(); private StatusEnum status; protected abstract B self(); @@ -343,7 +343,7 @@ public B photoUrls(Set photoUrls) { this.photoUrls = photoUrls; return self(); } - public B tags(List<@Valid Tag> tags) { + public B tags(List tags) { this.tags = tags; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 455b755ad976..f24c532c64d7 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -113,7 +113,7 @@ private String toIndentedString(Object o) { return new ReadOnlyFirstBuilderImpl(); } - private static class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder { + private static final class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder { @Override protected ReadOnlyFirstBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/SpecialModelName.java index ef3438d94e6f..b68ff4d10cb7 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new SpecialModelNameBuilderImpl(); } - private static class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder { + private static final class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder { @Override protected SpecialModelNameBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Tag.java index 73fe9b02636e..124d476f0a35 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Tag.java @@ -113,7 +113,7 @@ private String toIndentedString(Object o) { return new TagBuilderImpl(); } - private static class TagBuilderImpl extends TagBuilder { + private static final class TagBuilderImpl extends TagBuilder { @Override protected TagBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 783312671306..fed8101cc43c 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -217,7 +217,7 @@ private String toIndentedString(Object o) { return new TypeHolderDefaultBuilderImpl(); } - private static class TypeHolderDefaultBuilderImpl extends TypeHolderDefaultBuilder { + private static final class TypeHolderDefaultBuilderImpl extends TypeHolderDefaultBuilder { @Override protected TypeHolderDefaultBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java index f6a0f67c779b..8c2ecdde78c4 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -242,7 +242,7 @@ private String toIndentedString(Object o) { return new TypeHolderExampleBuilderImpl(); } - private static class TypeHolderExampleBuilderImpl extends TypeHolderExampleBuilder { + private static final class TypeHolderExampleBuilderImpl extends TypeHolderExampleBuilder { @Override protected TypeHolderExampleBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/User.java index 9c3938d4d6bb..359e08a5ceec 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/User.java @@ -252,7 +252,7 @@ private String toIndentedString(Object o) { return new UserBuilderImpl(); } - private static class UserBuilderImpl extends UserBuilder { + private static final class UserBuilderImpl extends UserBuilder { @Override protected UserBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/XmlItem.java index 5e4d1dcc6e0b..a64357917ea4 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/XmlItem.java @@ -882,7 +882,7 @@ private String toIndentedString(Object o) { return new XmlItemBuilderImpl(); } - private static class XmlItemBuilderImpl extends XmlItemBuilder { + private static final class XmlItemBuilderImpl extends XmlItemBuilder { @Override protected XmlItemBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 2bfdb89b4b46..9045da13ca62 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -450,7 +450,7 @@ private String toIndentedString(Object o) { return new AdditionalPropertiesClassBuilderImpl(); } - private static class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder { + private static final class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder { @Override protected AdditionalPropertiesClassBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Animal.java index 939b97d8936f..58caef016218 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Animal.java @@ -127,7 +127,7 @@ private String toIndentedString(Object o) { return new AnimalBuilderImpl(); } - private static class AnimalBuilderImpl extends AnimalBuilder { + private static final class AnimalBuilderImpl extends AnimalBuilder { @Override protected AnimalBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 95c2dd76dec2..9b1190a64b59 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -108,7 +108,7 @@ private String toIndentedString(Object o) { return new ArrayOfArrayOfNumberOnlyBuilderImpl(); } - private static class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder { + private static final class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder { @Override protected ArrayOfArrayOfNumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 5cf5f57a69f2..09fe3b439e48 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -108,7 +108,7 @@ private String toIndentedString(Object o) { return new ArrayOfNumberOnlyBuilderImpl(); } - private static class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder { + private static final class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder { @Override protected ArrayOfNumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayTest.java index b15d72314a67..3aff96260f52 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ArrayTest.java @@ -186,7 +186,7 @@ private String toIndentedString(Object o) { return new ArrayTestBuilderImpl(); } - private static class ArrayTestBuilderImpl extends ArrayTestBuilder { + private static final class ArrayTestBuilderImpl extends ArrayTestBuilder { @Override protected ArrayTestBuilderImpl self() { @@ -202,7 +202,7 @@ public ArrayTest build() { public static abstract class ArrayTestBuilder> { private List arrayOfString = new ArrayList<>(); private List> arrayArrayOfInteger = new ArrayList<>(); - private List> arrayArrayOfModel = new ArrayList<>(); + private List> arrayArrayOfModel = new ArrayList<>(); protected abstract B self(); public abstract C build(); @@ -215,7 +215,7 @@ public B arrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return self(); } - public B arrayArrayOfModel(List> arrayArrayOfModel) { + public B arrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/BigCat.java index e184f9db157e..6aa8b82efcd8 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/BigCat.java @@ -147,7 +147,7 @@ private String toIndentedString(Object o) { return new BigCatBuilderImpl(); } - private static class BigCatBuilderImpl extends BigCatBuilder { + private static final class BigCatBuilderImpl extends BigCatBuilder { @Override protected BigCatBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Capitalization.java index 8c0a60f7aad0..91beab59daf7 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Capitalization.java @@ -204,7 +204,7 @@ private String toIndentedString(Object o) { return new CapitalizationBuilderImpl(); } - private static class CapitalizationBuilderImpl extends CapitalizationBuilder { + private static final class CapitalizationBuilderImpl extends CapitalizationBuilder { @Override protected CapitalizationBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Cat.java index 1b8932c4a4ac..c0a4acfc14ee 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Cat.java @@ -100,7 +100,7 @@ private String toIndentedString(Object o) { return new CatBuilderImpl(); } - private static class CatBuilderImpl extends CatBuilder { + private static final class CatBuilderImpl extends CatBuilder { @Override protected CatBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Category.java index 570c10c72552..e90d388b8681 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Category.java @@ -118,7 +118,7 @@ private String toIndentedString(Object o) { return new CategoryBuilderImpl(); } - private static class CategoryBuilderImpl extends CategoryBuilder { + private static final class CategoryBuilderImpl extends CategoryBuilder { @Override protected CategoryBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ClassModel.java index 18bbf5772056..2baa0628c2e3 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ClassModel.java @@ -90,7 +90,7 @@ private String toIndentedString(Object o) { return new ClassModelBuilderImpl(); } - private static class ClassModelBuilderImpl extends ClassModelBuilder { + private static final class ClassModelBuilderImpl extends ClassModelBuilder { @Override protected ClassModelBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Client.java index bfa7c0641041..95a9a0ddd9eb 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Client.java @@ -88,7 +88,7 @@ private String toIndentedString(Object o) { return new ClientBuilderImpl(); } - private static class ClientBuilderImpl extends ClientBuilder { + private static final class ClientBuilderImpl extends ClientBuilder { @Override protected ClientBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Dog.java index 6d49e874c647..71f876ba23b0 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Dog.java @@ -100,7 +100,7 @@ private String toIndentedString(Object o) { return new DogBuilderImpl(); } - private static class DogBuilderImpl extends DogBuilder { + private static final class DogBuilderImpl extends DogBuilder { @Override protected DogBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumArrays.java index bb70b10e84d6..61bb5975233a 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumArrays.java @@ -224,7 +224,7 @@ private String toIndentedString(Object o) { return new EnumArraysBuilderImpl(); } - private static class EnumArraysBuilderImpl extends EnumArraysBuilder { + private static final class EnumArraysBuilderImpl extends EnumArraysBuilder { @Override protected EnumArraysBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumTest.java index ff88a24de43e..e3f00377cd13 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumTest.java @@ -377,7 +377,7 @@ private String toIndentedString(Object o) { return new EnumTestBuilderImpl(); } - private static class EnumTestBuilderImpl extends EnumTestBuilder { + private static final class EnumTestBuilderImpl extends EnumTestBuilder { @Override protected EnumTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index cf4cede34e06..f1d85aa9eb1e 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -131,7 +131,7 @@ private String toIndentedString(Object o) { return new FileSchemaTestClassBuilderImpl(); } - private static class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder { + private static final class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder { @Override protected FileSchemaTestClassBuilderImpl self() { @@ -146,7 +146,7 @@ public FileSchemaTestClass build() { public static abstract class FileSchemaTestClassBuilder> { private ModelFile _file; - private List<@Valid ModelFile> files = new ArrayList<>(); + private List files = new ArrayList<>(); protected abstract B self(); public abstract C build(); @@ -155,7 +155,7 @@ public B _file(ModelFile _file) { this._file = _file; return self(); } - public B files(List<@Valid ModelFile> files) { + public B files(List files) { this.files = files; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FormatTest.java index f6783a7fceb6..01e8183e92a3 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FormatTest.java @@ -417,7 +417,7 @@ private String toIndentedString(Object o) { return new FormatTestBuilderImpl(); } - private static class FormatTestBuilderImpl extends FormatTestBuilder { + private static final class FormatTestBuilderImpl extends FormatTestBuilder { @Override protected FormatTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 3d40f0210cce..6129d8390785 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -112,7 +112,7 @@ private String toIndentedString(Object o) { return new HasOnlyReadOnlyBuilderImpl(); } - private static class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder { + private static final class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder { @Override protected HasOnlyReadOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/MapTest.java index cdb6078ba7fe..557b4e18f33b 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/MapTest.java @@ -270,7 +270,7 @@ private String toIndentedString(Object o) { return new MapTestBuilderImpl(); } - private static class MapTestBuilderImpl extends MapTestBuilder { + private static final class MapTestBuilderImpl extends MapTestBuilder { @Override protected MapTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d86023964ffe..2d96670f2de9 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -155,7 +155,7 @@ private String toIndentedString(Object o) { return new MixedPropertiesAndAdditionalPropertiesClassBuilderImpl(); } - private static class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder { + private static final class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder { @Override protected MixedPropertiesAndAdditionalPropertiesClassBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Model200Response.java index 3ff0619c6a0e..bda59f053002 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Model200Response.java @@ -114,7 +114,7 @@ private String toIndentedString(Object o) { return new Model200ResponseBuilderImpl(); } - private static class Model200ResponseBuilderImpl extends Model200ResponseBuilder { + private static final class Model200ResponseBuilderImpl extends Model200ResponseBuilder { @Override protected Model200ResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelApiResponse.java index 560df57d35c4..0160dd8e8864 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -135,7 +135,7 @@ private String toIndentedString(Object o) { return new ModelApiResponseBuilderImpl(); } - private static class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder { + private static final class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder { @Override protected ModelApiResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelFile.java index aef703ea6d24..193bdbeb22ff 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelFile.java @@ -92,7 +92,7 @@ private String toIndentedString(Object o) { return new ModelFileBuilderImpl(); } - private static class ModelFileBuilderImpl extends ModelFileBuilder { + private static final class ModelFileBuilderImpl extends ModelFileBuilder { @Override protected ModelFileBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelList.java index 33b4c409211a..b51784d88fc7 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelList.java @@ -89,7 +89,7 @@ private String toIndentedString(Object o) { return new ModelListBuilderImpl(); } - private static class ModelListBuilderImpl extends ModelListBuilder { + private static final class ModelListBuilderImpl extends ModelListBuilder { @Override protected ModelListBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelReturn.java index 2b09635cc4a5..cf20f4bafe35 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ModelReturn.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new ModelReturnBuilderImpl(); } - private static class ModelReturnBuilderImpl extends ModelReturnBuilder { + private static final class ModelReturnBuilderImpl extends ModelReturnBuilder { @Override protected ModelReturnBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Name.java index 027a1458778a..d663978af4cf 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Name.java @@ -166,7 +166,7 @@ private String toIndentedString(Object o) { return new NameBuilderImpl(); } - private static class NameBuilderImpl extends NameBuilder { + private static final class NameBuilderImpl extends NameBuilder { @Override protected NameBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/NumberOnly.java index 7b65be443ffb..55262f7a445e 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/NumberOnly.java @@ -89,7 +89,7 @@ private String toIndentedString(Object o) { return new NumberOnlyBuilderImpl(); } - private static class NumberOnlyBuilderImpl extends NumberOnlyBuilder { + private static final class NumberOnlyBuilderImpl extends NumberOnlyBuilder { @Override protected NumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Order.java index ccea8b61043f..1aa1e3bb3f8e 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Order.java @@ -252,7 +252,7 @@ private String toIndentedString(Object o) { return new OrderBuilderImpl(); } - private static class OrderBuilderImpl extends OrderBuilder { + private static final class OrderBuilderImpl extends OrderBuilder { @Override protected OrderBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/OuterComposite.java index e80420b7e31a..adfb5d012921 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/OuterComposite.java @@ -135,7 +135,7 @@ private String toIndentedString(Object o) { return new OuterCompositeBuilderImpl(); } - private static class OuterCompositeBuilderImpl extends OuterCompositeBuilder { + private static final class OuterCompositeBuilderImpl extends OuterCompositeBuilder { @Override protected OuterCompositeBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Pet.java index 2d1c50a0c054..4fa64a4e56c4 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Pet.java @@ -301,7 +301,7 @@ private String toIndentedString(Object o) { return new PetBuilderImpl(); } - private static class PetBuilderImpl extends PetBuilder { + private static final class PetBuilderImpl extends PetBuilder { @Override protected PetBuilderImpl self() { @@ -319,7 +319,7 @@ public static abstract class PetBuilder photoUrls = new LinkedHashSet<>(); - private List<@Valid Tag> tags = new ArrayList<>(); + private List tags = new ArrayList<>(); private StatusEnum status; protected abstract B self(); @@ -341,7 +341,7 @@ public B photoUrls(Set photoUrls) { this.photoUrls = photoUrls; return self(); } - public B tags(List<@Valid Tag> tags) { + public B tags(List tags) { this.tags = tags; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 5ce9a43fb613..e95c3cc85449 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -111,7 +111,7 @@ private String toIndentedString(Object o) { return new ReadOnlyFirstBuilderImpl(); } - private static class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder { + private static final class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder { @Override protected ReadOnlyFirstBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/SpecialModelName.java index 404289971997..d82a7ad874a5 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -89,7 +89,7 @@ private String toIndentedString(Object o) { return new SpecialModelNameBuilderImpl(); } - private static class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder { + private static final class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder { @Override protected SpecialModelNameBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Tag.java index 5425a7d2a291..f51b540845ab 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Tag.java @@ -111,7 +111,7 @@ private String toIndentedString(Object o) { return new TagBuilderImpl(); } - private static class TagBuilderImpl extends TagBuilder { + private static final class TagBuilderImpl extends TagBuilder { @Override protected TagBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 62627a9c9c8b..30d8b4ccc43e 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -215,7 +215,7 @@ private String toIndentedString(Object o) { return new TypeHolderDefaultBuilderImpl(); } - private static class TypeHolderDefaultBuilderImpl extends TypeHolderDefaultBuilder { + private static final class TypeHolderDefaultBuilderImpl extends TypeHolderDefaultBuilder { @Override protected TypeHolderDefaultBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java index 542875a91d2c..4bd85ed3a21d 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -240,7 +240,7 @@ private String toIndentedString(Object o) { return new TypeHolderExampleBuilderImpl(); } - private static class TypeHolderExampleBuilderImpl extends TypeHolderExampleBuilder { + private static final class TypeHolderExampleBuilderImpl extends TypeHolderExampleBuilder { @Override protected TypeHolderExampleBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/User.java index 1305bbf8b8c2..2c414d68d133 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/User.java @@ -250,7 +250,7 @@ private String toIndentedString(Object o) { return new UserBuilderImpl(); } - private static class UserBuilderImpl extends UserBuilder { + private static final class UserBuilderImpl extends UserBuilder { @Override protected UserBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/XmlItem.java index d51181e1e3f7..3a89c1812eab 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/XmlItem.java @@ -880,7 +880,7 @@ private String toIndentedString(Object o) { return new XmlItemBuilderImpl(); } - private static class XmlItemBuilderImpl extends XmlItemBuilder { + private static final class XmlItemBuilderImpl extends XmlItemBuilder { @Override protected XmlItemBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index 41d44407cd30..b6ffd8112ce7 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -145,7 +145,7 @@ private String toIndentedString(Object o) { return new AdditionalPropertiesClassBuilderImpl(); } - private static class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder { + private static final class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder { @Override protected AdditionalPropertiesClassBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java index b106a220aa82..56292d1fd83c 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java @@ -112,7 +112,7 @@ private String toIndentedString(Object o) { return new AllOfWithSingleRefBuilderImpl(); } - private static class AllOfWithSingleRefBuilderImpl extends AllOfWithSingleRefBuilder { + private static final class AllOfWithSingleRefBuilderImpl extends AllOfWithSingleRefBuilder { @Override protected AllOfWithSingleRefBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Animal.java index ab9966ea6907..e04b186bd7f7 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Animal.java @@ -126,7 +126,7 @@ private String toIndentedString(Object o) { return new AnimalBuilderImpl(); } - private static class AnimalBuilderImpl extends AnimalBuilder { + private static final class AnimalBuilderImpl extends AnimalBuilder { @Override protected AnimalBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 95c2dd76dec2..9b1190a64b59 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -108,7 +108,7 @@ private String toIndentedString(Object o) { return new ArrayOfArrayOfNumberOnlyBuilderImpl(); } - private static class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder { + private static final class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder { @Override protected ArrayOfArrayOfNumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 5cf5f57a69f2..09fe3b439e48 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -108,7 +108,7 @@ private String toIndentedString(Object o) { return new ArrayOfNumberOnlyBuilderImpl(); } - private static class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder { + private static final class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder { @Override protected ArrayOfNumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayTest.java index 976095cdb3f0..b763aaa68e52 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ArrayTest.java @@ -186,7 +186,7 @@ private String toIndentedString(Object o) { return new ArrayTestBuilderImpl(); } - private static class ArrayTestBuilderImpl extends ArrayTestBuilder { + private static final class ArrayTestBuilderImpl extends ArrayTestBuilder { @Override protected ArrayTestBuilderImpl self() { @@ -202,7 +202,7 @@ public ArrayTest build() { public static abstract class ArrayTestBuilder> { private List arrayOfString = new ArrayList<>(); private List> arrayArrayOfInteger = new ArrayList<>(); - private List> arrayArrayOfModel = new ArrayList<>(); + private List> arrayArrayOfModel = new ArrayList<>(); protected abstract B self(); public abstract C build(); @@ -215,7 +215,7 @@ public B arrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return self(); } - public B arrayArrayOfModel(List> arrayArrayOfModel) { + public B arrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Capitalization.java index 8c0a60f7aad0..91beab59daf7 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Capitalization.java @@ -204,7 +204,7 @@ private String toIndentedString(Object o) { return new CapitalizationBuilderImpl(); } - private static class CapitalizationBuilderImpl extends CapitalizationBuilder { + private static final class CapitalizationBuilderImpl extends CapitalizationBuilder { @Override protected CapitalizationBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Cat.java index 1b8932c4a4ac..c0a4acfc14ee 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Cat.java @@ -100,7 +100,7 @@ private String toIndentedString(Object o) { return new CatBuilderImpl(); } - private static class CatBuilderImpl extends CatBuilder { + private static final class CatBuilderImpl extends CatBuilder { @Override protected CatBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Category.java index 570c10c72552..e90d388b8681 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Category.java @@ -118,7 +118,7 @@ private String toIndentedString(Object o) { return new CategoryBuilderImpl(); } - private static class CategoryBuilderImpl extends CategoryBuilder { + private static final class CategoryBuilderImpl extends CategoryBuilder { @Override protected CategoryBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ChildWithNullable.java index f906f64e0a6a..aa75bad3eef3 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ChildWithNullable.java @@ -92,7 +92,7 @@ private String toIndentedString(Object o) { return new ChildWithNullableBuilderImpl(); } - private static class ChildWithNullableBuilderImpl extends ChildWithNullableBuilder { + private static final class ChildWithNullableBuilderImpl extends ChildWithNullableBuilder { @Override protected ChildWithNullableBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ClassModel.java index 18bbf5772056..2baa0628c2e3 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ClassModel.java @@ -90,7 +90,7 @@ private String toIndentedString(Object o) { return new ClassModelBuilderImpl(); } - private static class ClassModelBuilderImpl extends ClassModelBuilder { + private static final class ClassModelBuilderImpl extends ClassModelBuilder { @Override protected ClassModelBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Client.java index bfa7c0641041..95a9a0ddd9eb 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Client.java @@ -88,7 +88,7 @@ private String toIndentedString(Object o) { return new ClientBuilderImpl(); } - private static class ClientBuilderImpl extends ClientBuilder { + private static final class ClientBuilderImpl extends ClientBuilder { @Override protected ClientBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/DeprecatedObject.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/DeprecatedObject.java index cb1f9ac28a4e..1de38c258121 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/DeprecatedObject.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/DeprecatedObject.java @@ -88,7 +88,7 @@ private String toIndentedString(Object o) { return new DeprecatedObjectBuilderImpl(); } - private static class DeprecatedObjectBuilderImpl extends DeprecatedObjectBuilder { + private static final class DeprecatedObjectBuilderImpl extends DeprecatedObjectBuilder { @Override protected DeprecatedObjectBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Dog.java index 6d49e874c647..71f876ba23b0 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Dog.java @@ -100,7 +100,7 @@ private String toIndentedString(Object o) { return new DogBuilderImpl(); } - private static class DogBuilderImpl extends DogBuilder { + private static final class DogBuilderImpl extends DogBuilder { @Override protected DogBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumArrays.java index bb70b10e84d6..61bb5975233a 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumArrays.java @@ -224,7 +224,7 @@ private String toIndentedString(Object o) { return new EnumArraysBuilderImpl(); } - private static class EnumArraysBuilderImpl extends EnumArraysBuilder { + private static final class EnumArraysBuilderImpl extends EnumArraysBuilder { @Override protected EnumArraysBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumTest.java index dde1ef36cfdc..638d2d8cb6e7 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumTest.java @@ -450,7 +450,7 @@ private String toIndentedString(Object o) { return new EnumTestBuilderImpl(); } - private static class EnumTestBuilderImpl extends EnumTestBuilder { + private static final class EnumTestBuilderImpl extends EnumTestBuilder { @Override protected EnumTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java index 1bdc504310fe..7f46336ab250 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java @@ -131,7 +131,7 @@ private String toIndentedString(Object o) { return new FakeBigDecimalMap200ResponseBuilderImpl(); } - private static class FakeBigDecimalMap200ResponseBuilderImpl extends FakeBigDecimalMap200ResponseBuilder { + private static final class FakeBigDecimalMap200ResponseBuilderImpl extends FakeBigDecimalMap200ResponseBuilder { @Override protected FakeBigDecimalMap200ResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index cf4cede34e06..f1d85aa9eb1e 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -131,7 +131,7 @@ private String toIndentedString(Object o) { return new FileSchemaTestClassBuilderImpl(); } - private static class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder { + private static final class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder { @Override protected FileSchemaTestClassBuilderImpl self() { @@ -146,7 +146,7 @@ public FileSchemaTestClass build() { public static abstract class FileSchemaTestClassBuilder> { private ModelFile _file; - private List<@Valid ModelFile> files = new ArrayList<>(); + private List files = new ArrayList<>(); protected abstract B self(); public abstract C build(); @@ -155,7 +155,7 @@ public B _file(ModelFile _file) { this._file = _file; return self(); } - public B files(List<@Valid ModelFile> files) { + public B files(List files) { this.files = files; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Foo.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Foo.java index ea00a4d4c040..b2a38c89f4e1 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Foo.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Foo.java @@ -88,7 +88,7 @@ private String toIndentedString(Object o) { return new FooBuilderImpl(); } - private static class FooBuilderImpl extends FooBuilder { + private static final class FooBuilderImpl extends FooBuilder { @Override protected FooBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java index 910d18fd4c73..25b33f31a1e5 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java @@ -90,7 +90,7 @@ private String toIndentedString(Object o) { return new FooGetDefaultResponseBuilderImpl(); } - private static class FooGetDefaultResponseBuilderImpl extends FooGetDefaultResponseBuilder { + private static final class FooGetDefaultResponseBuilderImpl extends FooGetDefaultResponseBuilder { @Override protected FooGetDefaultResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FormatTest.java index b4c8a2355255..dbd0d93d351d 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FormatTest.java @@ -465,7 +465,7 @@ private String toIndentedString(Object o) { return new FormatTestBuilderImpl(); } - private static class FormatTestBuilderImpl extends FormatTestBuilder { + private static final class FormatTestBuilderImpl extends FormatTestBuilder { @Override protected FormatTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 3d40f0210cce..6129d8390785 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -112,7 +112,7 @@ private String toIndentedString(Object o) { return new HasOnlyReadOnlyBuilderImpl(); } - private static class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder { + private static final class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder { @Override protected HasOnlyReadOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/HealthCheckResult.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/HealthCheckResult.java index 12cd3108d4d5..1683621afcb5 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/HealthCheckResult.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/HealthCheckResult.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new HealthCheckResultBuilderImpl(); } - private static class HealthCheckResultBuilderImpl extends HealthCheckResultBuilder { + private static final class HealthCheckResultBuilderImpl extends HealthCheckResultBuilder { @Override protected HealthCheckResultBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/MapTest.java index cdb6078ba7fe..557b4e18f33b 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/MapTest.java @@ -270,7 +270,7 @@ private String toIndentedString(Object o) { return new MapTestBuilderImpl(); } - private static class MapTestBuilderImpl extends MapTestBuilder { + private static final class MapTestBuilderImpl extends MapTestBuilder { @Override protected MapTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index d86023964ffe..2d96670f2de9 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -155,7 +155,7 @@ private String toIndentedString(Object o) { return new MixedPropertiesAndAdditionalPropertiesClassBuilderImpl(); } - private static class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder { + private static final class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder { @Override protected MixedPropertiesAndAdditionalPropertiesClassBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Model200Response.java index 3ff0619c6a0e..bda59f053002 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Model200Response.java @@ -114,7 +114,7 @@ private String toIndentedString(Object o) { return new Model200ResponseBuilderImpl(); } - private static class Model200ResponseBuilderImpl extends Model200ResponseBuilder { + private static final class Model200ResponseBuilderImpl extends Model200ResponseBuilder { @Override protected Model200ResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelApiResponse.java index 560df57d35c4..0160dd8e8864 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -135,7 +135,7 @@ private String toIndentedString(Object o) { return new ModelApiResponseBuilderImpl(); } - private static class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder { + private static final class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder { @Override protected ModelApiResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelFile.java index aef703ea6d24..193bdbeb22ff 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelFile.java @@ -92,7 +92,7 @@ private String toIndentedString(Object o) { return new ModelFileBuilderImpl(); } - private static class ModelFileBuilderImpl extends ModelFileBuilder { + private static final class ModelFileBuilderImpl extends ModelFileBuilder { @Override protected ModelFileBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelList.java index 33b4c409211a..b51784d88fc7 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelList.java @@ -89,7 +89,7 @@ private String toIndentedString(Object o) { return new ModelListBuilderImpl(); } - private static class ModelListBuilderImpl extends ModelListBuilder { + private static final class ModelListBuilderImpl extends ModelListBuilder { @Override protected ModelListBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelReturn.java index 2b09635cc4a5..cf20f4bafe35 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ModelReturn.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new ModelReturnBuilderImpl(); } - private static class ModelReturnBuilderImpl extends ModelReturnBuilder { + private static final class ModelReturnBuilderImpl extends ModelReturnBuilder { @Override protected ModelReturnBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Name.java index 027a1458778a..d663978af4cf 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Name.java @@ -166,7 +166,7 @@ private String toIndentedString(Object o) { return new NameBuilderImpl(); } - private static class NameBuilderImpl extends NameBuilder { + private static final class NameBuilderImpl extends NameBuilder { @Override protected NameBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/NumberOnly.java index 7b65be443ffb..55262f7a445e 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/NumberOnly.java @@ -89,7 +89,7 @@ private String toIndentedString(Object o) { return new NumberOnlyBuilderImpl(); } - private static class NumberOnlyBuilderImpl extends NumberOnlyBuilder { + private static final class NumberOnlyBuilderImpl extends NumberOnlyBuilder { @Override protected NumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java index 163076246c00..81c2b50c8d1b 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java @@ -178,7 +178,7 @@ private String toIndentedString(Object o) { return new ObjectWithDeprecatedFieldsBuilderImpl(); } - private static class ObjectWithDeprecatedFieldsBuilderImpl extends ObjectWithDeprecatedFieldsBuilder { + private static final class ObjectWithDeprecatedFieldsBuilderImpl extends ObjectWithDeprecatedFieldsBuilder { @Override protected ObjectWithDeprecatedFieldsBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Order.java index ccea8b61043f..1aa1e3bb3f8e 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Order.java @@ -252,7 +252,7 @@ private String toIndentedString(Object o) { return new OrderBuilderImpl(); } - private static class OrderBuilderImpl extends OrderBuilder { + private static final class OrderBuilderImpl extends OrderBuilder { @Override protected OrderBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterComposite.java index e80420b7e31a..adfb5d012921 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterComposite.java @@ -135,7 +135,7 @@ private String toIndentedString(Object o) { return new OuterCompositeBuilderImpl(); } - private static class OuterCompositeBuilderImpl extends OuterCompositeBuilder { + private static final class OuterCompositeBuilderImpl extends OuterCompositeBuilder { @Override protected OuterCompositeBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index 3f3ccf42e108..e6d0d68026fb 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -96,7 +96,7 @@ private String toIndentedString(Object o) { return new OuterObjectWithEnumPropertyBuilderImpl(); } - private static class OuterObjectWithEnumPropertyBuilderImpl extends OuterObjectWithEnumPropertyBuilder { + private static final class OuterObjectWithEnumPropertyBuilderImpl extends OuterObjectWithEnumPropertyBuilder { @Override protected OuterObjectWithEnumPropertyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ParentWithNullable.java index 3f97a0ab6d00..8bed5f324ed5 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ParentWithNullable.java @@ -166,7 +166,7 @@ private String toIndentedString(Object o) { return new ParentWithNullableBuilderImpl(); } - private static class ParentWithNullableBuilderImpl extends ParentWithNullableBuilder { + private static final class ParentWithNullableBuilderImpl extends ParentWithNullableBuilder { @Override protected ParentWithNullableBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Pet.java index 2d1c50a0c054..4fa64a4e56c4 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Pet.java @@ -301,7 +301,7 @@ private String toIndentedString(Object o) { return new PetBuilderImpl(); } - private static class PetBuilderImpl extends PetBuilder { + private static final class PetBuilderImpl extends PetBuilder { @Override protected PetBuilderImpl self() { @@ -319,7 +319,7 @@ public static abstract class PetBuilder photoUrls = new LinkedHashSet<>(); - private List<@Valid Tag> tags = new ArrayList<>(); + private List tags = new ArrayList<>(); private StatusEnum status; protected abstract B self(); @@ -341,7 +341,7 @@ public B photoUrls(Set photoUrls) { this.photoUrls = photoUrls; return self(); } - public B tags(List<@Valid Tag> tags) { + public B tags(List tags) { this.tags = tags; return self(); } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 5ce9a43fb613..e95c3cc85449 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -111,7 +111,7 @@ private String toIndentedString(Object o) { return new ReadOnlyFirstBuilderImpl(); } - private static class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder { + private static final class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder { @Override protected ReadOnlyFirstBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/SpecialModelName.java index a5c0fcc4442a..5ff1b85a1b57 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -89,7 +89,7 @@ private String toIndentedString(Object o) { return new SpecialModelNameBuilderImpl(); } - private static class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder { + private static final class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder { @Override protected SpecialModelNameBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Tag.java index 5425a7d2a291..f51b540845ab 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Tag.java @@ -111,7 +111,7 @@ private String toIndentedString(Object o) { return new TagBuilderImpl(); } - private static class TagBuilderImpl extends TagBuilder { + private static final class TagBuilderImpl extends TagBuilder { @Override protected TagBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/User.java index 1305bbf8b8c2..2c414d68d133 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/User.java @@ -250,7 +250,7 @@ private String toIndentedString(Object o) { return new UserBuilderImpl(); } - private static class UserBuilderImpl extends UserBuilder { + private static final class UserBuilderImpl extends UserBuilder { @Override protected UserBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec-required-and-readonly-property/src/gen/java/org/openapitools/model/ReadonlyAndRequiredProperties.java b/samples/server/petstore/jaxrs-spec-required-and-readonly-property/src/gen/java/org/openapitools/model/ReadonlyAndRequiredProperties.java index dc033c980bc9..38342ae418de 100644 --- a/samples/server/petstore/jaxrs-spec-required-and-readonly-property/src/gen/java/org/openapitools/model/ReadonlyAndRequiredProperties.java +++ b/samples/server/petstore/jaxrs-spec-required-and-readonly-property/src/gen/java/org/openapitools/model/ReadonlyAndRequiredProperties.java @@ -168,7 +168,7 @@ private String toIndentedString(Object o) { return new ReadonlyAndRequiredPropertiesBuilderImpl(); } - private static class ReadonlyAndRequiredPropertiesBuilderImpl extends ReadonlyAndRequiredPropertiesBuilder { + private static final class ReadonlyAndRequiredPropertiesBuilderImpl extends ReadonlyAndRequiredPropertiesBuilder { @Override protected ReadonlyAndRequiredPropertiesBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index ef7352e07d04..529544014f11 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -147,7 +147,7 @@ private String toIndentedString(Object o) { return new AdditionalPropertiesClassBuilderImpl(); } - private static class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder { + private static final class AdditionalPropertiesClassBuilderImpl extends AdditionalPropertiesClassBuilder { @Override protected AdditionalPropertiesClassBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java index 66507d611f1c..5d9d3f1a02e1 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AllOfWithSingleRef.java @@ -114,7 +114,7 @@ private String toIndentedString(Object o) { return new AllOfWithSingleRefBuilderImpl(); } - private static class AllOfWithSingleRefBuilderImpl extends AllOfWithSingleRefBuilder { + private static final class AllOfWithSingleRefBuilderImpl extends AllOfWithSingleRefBuilder { @Override protected AllOfWithSingleRefBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Animal.java index 0958065b3d62..2ba13b28ff71 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Animal.java @@ -128,7 +128,7 @@ private String toIndentedString(Object o) { return new AnimalBuilderImpl(); } - private static class AnimalBuilderImpl extends AnimalBuilder { + private static final class AnimalBuilderImpl extends AnimalBuilder { @Override protected AnimalBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index dd4a61e17542..b5aa962bb4bf 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -110,7 +110,7 @@ private String toIndentedString(Object o) { return new ArrayOfArrayOfNumberOnlyBuilderImpl(); } - private static class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder { + private static final class ArrayOfArrayOfNumberOnlyBuilderImpl extends ArrayOfArrayOfNumberOnlyBuilder { @Override protected ArrayOfArrayOfNumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index f2f383964562..0751f86f9d0d 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -110,7 +110,7 @@ private String toIndentedString(Object o) { return new ArrayOfNumberOnlyBuilderImpl(); } - private static class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder { + private static final class ArrayOfNumberOnlyBuilderImpl extends ArrayOfNumberOnlyBuilder { @Override protected ArrayOfNumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java index 1bf8c0e5968a..5a73e8d6213c 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java @@ -188,7 +188,7 @@ private String toIndentedString(Object o) { return new ArrayTestBuilderImpl(); } - private static class ArrayTestBuilderImpl extends ArrayTestBuilder { + private static final class ArrayTestBuilderImpl extends ArrayTestBuilder { @Override protected ArrayTestBuilderImpl self() { @@ -204,7 +204,7 @@ public ArrayTest build() { public static abstract class ArrayTestBuilder> { private List arrayOfString = new ArrayList<>(); private List> arrayArrayOfInteger = new ArrayList<>(); - private List> arrayArrayOfModel = new ArrayList<>(); + private List> arrayArrayOfModel = new ArrayList<>(); protected abstract B self(); public abstract C build(); @@ -217,7 +217,7 @@ public B arrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; return self(); } - public B arrayArrayOfModel(List> arrayArrayOfModel) { + public B arrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; return self(); } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Capitalization.java index e83d1ba79d33..8855a2d07891 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Capitalization.java @@ -206,7 +206,7 @@ private String toIndentedString(Object o) { return new CapitalizationBuilderImpl(); } - private static class CapitalizationBuilderImpl extends CapitalizationBuilder { + private static final class CapitalizationBuilderImpl extends CapitalizationBuilder { @Override protected CapitalizationBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java index db43dc523c37..4023af7a87e1 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java @@ -102,7 +102,7 @@ private String toIndentedString(Object o) { return new CatBuilderImpl(); } - private static class CatBuilderImpl extends CatBuilder { + private static final class CatBuilderImpl extends CatBuilder { @Override protected CatBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java index 5797201b3397..02bbd55b29b7 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java @@ -120,7 +120,7 @@ private String toIndentedString(Object o) { return new CategoryBuilderImpl(); } - private static class CategoryBuilderImpl extends CategoryBuilder { + private static final class CategoryBuilderImpl extends CategoryBuilder { @Override protected CategoryBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ChildWithNullable.java index c6b138eeaeb8..91849e2855e4 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ChildWithNullable.java @@ -94,7 +94,7 @@ private String toIndentedString(Object o) { return new ChildWithNullableBuilderImpl(); } - private static class ChildWithNullableBuilderImpl extends ChildWithNullableBuilder { + private static final class ChildWithNullableBuilderImpl extends ChildWithNullableBuilder { @Override protected ChildWithNullableBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ClassModel.java index e769549e75b1..2db55fd86c3b 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ClassModel.java @@ -92,7 +92,7 @@ private String toIndentedString(Object o) { return new ClassModelBuilderImpl(); } - private static class ClassModelBuilderImpl extends ClassModelBuilder { + private static final class ClassModelBuilderImpl extends ClassModelBuilder { @Override protected ClassModelBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Client.java index b994489c7edb..74d4c1f5c8c1 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Client.java @@ -90,7 +90,7 @@ private String toIndentedString(Object o) { return new ClientBuilderImpl(); } - private static class ClientBuilderImpl extends ClientBuilder { + private static final class ClientBuilderImpl extends ClientBuilder { @Override protected ClientBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/DeprecatedObject.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/DeprecatedObject.java index 076f5b5b3df7..37bf332ccb23 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/DeprecatedObject.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/DeprecatedObject.java @@ -90,7 +90,7 @@ private String toIndentedString(Object o) { return new DeprecatedObjectBuilderImpl(); } - private static class DeprecatedObjectBuilderImpl extends DeprecatedObjectBuilder { + private static final class DeprecatedObjectBuilderImpl extends DeprecatedObjectBuilder { @Override protected DeprecatedObjectBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java index 8effddd93978..a7cd32bcedd9 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java @@ -102,7 +102,7 @@ private String toIndentedString(Object o) { return new DogBuilderImpl(); } - private static class DogBuilderImpl extends DogBuilder { + private static final class DogBuilderImpl extends DogBuilder { @Override protected DogBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java index 90e3af8a81f2..b8b147e1a788 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java @@ -226,7 +226,7 @@ private String toIndentedString(Object o) { return new EnumArraysBuilderImpl(); } - private static class EnumArraysBuilderImpl extends EnumArraysBuilder { + private static final class EnumArraysBuilderImpl extends EnumArraysBuilder { @Override protected EnumArraysBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java index d5941038dff4..b33a5eac6ef5 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java @@ -452,7 +452,7 @@ private String toIndentedString(Object o) { return new EnumTestBuilderImpl(); } - private static class EnumTestBuilderImpl extends EnumTestBuilder { + private static final class EnumTestBuilderImpl extends EnumTestBuilder { @Override protected EnumTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java index 5b41a0e8c306..57f13028e274 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FakeBigDecimalMap200Response.java @@ -133,7 +133,7 @@ private String toIndentedString(Object o) { return new FakeBigDecimalMap200ResponseBuilderImpl(); } - private static class FakeBigDecimalMap200ResponseBuilderImpl extends FakeBigDecimalMap200ResponseBuilder { + private static final class FakeBigDecimalMap200ResponseBuilderImpl extends FakeBigDecimalMap200ResponseBuilder { @Override protected FakeBigDecimalMap200ResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FakeTestsDefaultsDefaultResponse.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FakeTestsDefaultsDefaultResponse.java index 3a0b6e8e3138..42109ae953c5 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FakeTestsDefaultsDefaultResponse.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FakeTestsDefaultsDefaultResponse.java @@ -256,7 +256,7 @@ private String toIndentedString(Object o) { return new FakeTestsDefaultsDefaultResponseBuilderImpl(); } - private static class FakeTestsDefaultsDefaultResponseBuilderImpl extends FakeTestsDefaultsDefaultResponseBuilder { + private static final class FakeTestsDefaultsDefaultResponseBuilderImpl extends FakeTestsDefaultsDefaultResponseBuilder { @Override protected FakeTestsDefaultsDefaultResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 232115612665..11c62807e1fe 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -133,7 +133,7 @@ private String toIndentedString(Object o) { return new FileSchemaTestClassBuilderImpl(); } - private static class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder { + private static final class FileSchemaTestClassBuilderImpl extends FileSchemaTestClassBuilder { @Override protected FileSchemaTestClassBuilderImpl self() { @@ -148,7 +148,7 @@ public FileSchemaTestClass build() { public static abstract class FileSchemaTestClassBuilder> { private ModelFile _file; - private List<@Valid ModelFile> files = new ArrayList<>(); + private List files = new ArrayList<>(); protected abstract B self(); public abstract C build(); @@ -157,7 +157,7 @@ public B _file(ModelFile _file) { this._file = _file; return self(); } - public B files(List<@Valid ModelFile> files) { + public B files(List files) { this.files = files; return self(); } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Foo.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Foo.java index b5989ae62abe..b0be1fc1d5c4 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Foo.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Foo.java @@ -90,7 +90,7 @@ private String toIndentedString(Object o) { return new FooBuilderImpl(); } - private static class FooBuilderImpl extends FooBuilder { + private static final class FooBuilderImpl extends FooBuilder { @Override protected FooBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java index 70b6f309e586..54da50600218 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FooGetDefaultResponse.java @@ -92,7 +92,7 @@ private String toIndentedString(Object o) { return new FooGetDefaultResponseBuilderImpl(); } - private static class FooGetDefaultResponseBuilderImpl extends FooGetDefaultResponseBuilder { + private static final class FooGetDefaultResponseBuilderImpl extends FooGetDefaultResponseBuilder { @Override protected FooGetDefaultResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java index 205c9f8e242a..ea3f2d741ec1 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java @@ -467,7 +467,7 @@ private String toIndentedString(Object o) { return new FormatTestBuilderImpl(); } - private static class FormatTestBuilderImpl extends FormatTestBuilder { + private static final class FormatTestBuilderImpl extends FormatTestBuilder { @Override protected FormatTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index 9f88d18176a7..28b370ab36e4 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -114,7 +114,7 @@ private String toIndentedString(Object o) { return new HasOnlyReadOnlyBuilderImpl(); } - private static class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder { + private static final class HasOnlyReadOnlyBuilderImpl extends HasOnlyReadOnlyBuilder { @Override protected HasOnlyReadOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HealthCheckResult.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HealthCheckResult.java index 07d2a3c429ec..3bf1ff1795cd 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HealthCheckResult.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HealthCheckResult.java @@ -93,7 +93,7 @@ private String toIndentedString(Object o) { return new HealthCheckResultBuilderImpl(); } - private static class HealthCheckResultBuilderImpl extends HealthCheckResultBuilder { + private static final class HealthCheckResultBuilderImpl extends HealthCheckResultBuilder { @Override protected HealthCheckResultBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java index 9552ef16d489..3bc41adbd018 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java @@ -272,7 +272,7 @@ private String toIndentedString(Object o) { return new MapTestBuilderImpl(); } - private static class MapTestBuilderImpl extends MapTestBuilder { + private static final class MapTestBuilderImpl extends MapTestBuilder { @Override protected MapTestBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 8a81db1d3cef..62fbff16dd95 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -157,7 +157,7 @@ private String toIndentedString(Object o) { return new MixedPropertiesAndAdditionalPropertiesClassBuilderImpl(); } - private static class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder { + private static final class MixedPropertiesAndAdditionalPropertiesClassBuilderImpl extends MixedPropertiesAndAdditionalPropertiesClassBuilder { @Override protected MixedPropertiesAndAdditionalPropertiesClassBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Model200Response.java index e67751e8267e..5cb38f8867e0 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Model200Response.java @@ -116,7 +116,7 @@ private String toIndentedString(Object o) { return new Model200ResponseBuilderImpl(); } - private static class Model200ResponseBuilderImpl extends Model200ResponseBuilder { + private static final class Model200ResponseBuilderImpl extends Model200ResponseBuilder { @Override protected Model200ResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelApiResponse.java index 0f93e5e6cb84..40e8cc5da0e7 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -137,7 +137,7 @@ private String toIndentedString(Object o) { return new ModelApiResponseBuilderImpl(); } - private static class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder { + private static final class ModelApiResponseBuilderImpl extends ModelApiResponseBuilder { @Override protected ModelApiResponseBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelFile.java index 6c2a8fd6c134..16002af5a6e1 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelFile.java @@ -94,7 +94,7 @@ private String toIndentedString(Object o) { return new ModelFileBuilderImpl(); } - private static class ModelFileBuilderImpl extends ModelFileBuilder { + private static final class ModelFileBuilderImpl extends ModelFileBuilder { @Override protected ModelFileBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelList.java index 9f7374dc6f9b..6d1978a2e6c8 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelList.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new ModelListBuilderImpl(); } - private static class ModelListBuilderImpl extends ModelListBuilder { + private static final class ModelListBuilderImpl extends ModelListBuilder { @Override protected ModelListBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelReturn.java index ddf6337d1dc1..eb3af2de796d 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelReturn.java @@ -93,7 +93,7 @@ private String toIndentedString(Object o) { return new ModelReturnBuilderImpl(); } - private static class ModelReturnBuilderImpl extends ModelReturnBuilder { + private static final class ModelReturnBuilderImpl extends ModelReturnBuilder { @Override protected ModelReturnBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java index c1181780e838..7200f5829aad 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java @@ -168,7 +168,7 @@ private String toIndentedString(Object o) { return new NameBuilderImpl(); } - private static class NameBuilderImpl extends NameBuilder { + private static final class NameBuilderImpl extends NameBuilder { @Override protected NameBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NumberOnly.java index 195185bb4723..a5e976b87faf 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NumberOnly.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new NumberOnlyBuilderImpl(); } - private static class NumberOnlyBuilderImpl extends NumberOnlyBuilder { + private static final class NumberOnlyBuilderImpl extends NumberOnlyBuilder { @Override protected NumberOnlyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java index b7ae13220d2b..fa2efe9631c0 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ObjectWithDeprecatedFields.java @@ -180,7 +180,7 @@ private String toIndentedString(Object o) { return new ObjectWithDeprecatedFieldsBuilderImpl(); } - private static class ObjectWithDeprecatedFieldsBuilderImpl extends ObjectWithDeprecatedFieldsBuilder { + private static final class ObjectWithDeprecatedFieldsBuilderImpl extends ObjectWithDeprecatedFieldsBuilder { @Override protected ObjectWithDeprecatedFieldsBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Order.java index 96527c3762b1..14c633d9b532 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Order.java @@ -254,7 +254,7 @@ private String toIndentedString(Object o) { return new OrderBuilderImpl(); } - private static class OrderBuilderImpl extends OrderBuilder { + private static final class OrderBuilderImpl extends OrderBuilder { @Override protected OrderBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterComposite.java index 12e3e1a6e052..0405cc2aab9a 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterComposite.java @@ -137,7 +137,7 @@ private String toIndentedString(Object o) { return new OuterCompositeBuilderImpl(); } - private static class OuterCompositeBuilderImpl extends OuterCompositeBuilder { + private static final class OuterCompositeBuilderImpl extends OuterCompositeBuilder { @Override protected OuterCompositeBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index c85c7d918795..2b942b0bc67b 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -98,7 +98,7 @@ private String toIndentedString(Object o) { return new OuterObjectWithEnumPropertyBuilderImpl(); } - private static class OuterObjectWithEnumPropertyBuilderImpl extends OuterObjectWithEnumPropertyBuilder { + private static final class OuterObjectWithEnumPropertyBuilderImpl extends OuterObjectWithEnumPropertyBuilder { @Override protected OuterObjectWithEnumPropertyBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ParentWithNullable.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ParentWithNullable.java index f61f6d1c93ee..097d73c35a3f 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ParentWithNullable.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ParentWithNullable.java @@ -168,7 +168,7 @@ private String toIndentedString(Object o) { return new ParentWithNullableBuilderImpl(); } - private static class ParentWithNullableBuilderImpl extends ParentWithNullableBuilder { + private static final class ParentWithNullableBuilderImpl extends ParentWithNullableBuilder { @Override protected ParentWithNullableBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java index 6dd820a36f76..86db9debefb2 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java @@ -303,7 +303,7 @@ private String toIndentedString(Object o) { return new PetBuilderImpl(); } - private static class PetBuilderImpl extends PetBuilder { + private static final class PetBuilderImpl extends PetBuilder { @Override protected PetBuilderImpl self() { @@ -321,7 +321,7 @@ public static abstract class PetBuilder photoUrls = new LinkedHashSet<>(); - private List<@Valid Tag> tags = new ArrayList<>(); + private List tags = new ArrayList<>(); private StatusEnum status; protected abstract B self(); @@ -343,7 +343,7 @@ public B photoUrls(Set photoUrls) { this.photoUrls = photoUrls; return self(); } - public B tags(List<@Valid Tag> tags) { + public B tags(List tags) { this.tags = tags; return self(); } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 5b148c17f50c..9703709f0c77 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -113,7 +113,7 @@ private String toIndentedString(Object o) { return new ReadOnlyFirstBuilderImpl(); } - private static class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder { + private static final class ReadOnlyFirstBuilderImpl extends ReadOnlyFirstBuilder { @Override protected ReadOnlyFirstBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/SpecialModelName.java index cd6f37fc58ef..b5b6bcfab527 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -91,7 +91,7 @@ private String toIndentedString(Object o) { return new SpecialModelNameBuilderImpl(); } - private static class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder { + private static final class SpecialModelNameBuilderImpl extends SpecialModelNameBuilder { @Override protected SpecialModelNameBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Tag.java index c69006daa84d..ed2cbb91f38b 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Tag.java @@ -113,7 +113,7 @@ private String toIndentedString(Object o) { return new TagBuilderImpl(); } - private static class TagBuilderImpl extends TagBuilder { + private static final class TagBuilderImpl extends TagBuilder { @Override protected TagBuilderImpl self() { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/User.java index 690584c719c2..ec5aa3baddf1 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/User.java @@ -252,7 +252,7 @@ private String toIndentedString(Object o) { return new UserBuilderImpl(); } - private static class UserBuilderImpl extends UserBuilder { + private static final class UserBuilderImpl extends UserBuilder { @Override protected UserBuilderImpl self() { diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java index 0a017b94dbfb..32029dc07f9b 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/ArrayTest.java @@ -190,7 +190,7 @@ public ArrayTest.Builder arrayArrayOfInteger(List> arrayArrayOfIntege return this; } - public ArrayTest.Builder arrayArrayOfModel(List> arrayArrayOfModel) { + public ArrayTest.Builder arrayArrayOfModel(List> arrayArrayOfModel) { this.instance.arrayArrayOfModel(arrayArrayOfModel); return this; } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java index 79e8da68a340..6ff46fb5c28e 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FileSchemaTestClass.java @@ -142,7 +142,7 @@ public FileSchemaTestClass.Builder file(File file) { return this; } - public FileSchemaTestClass.Builder files(List<@Valid File> files) { + public FileSchemaTestClass.Builder files(List files) { this.instance.files(files); return this; } diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java index 26b66ff88915..fe0f1f343812 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/Pet.java @@ -328,7 +328,7 @@ public Pet.Builder photoUrls(Set photoUrls) { return this; } - public Pet.Builder tags(List<@Valid Tag> tags) { + public Pet.Builder tags(List tags) { this.instance.tags(tags); return this; }