From 98c950bb416c27974f0364854f570e8be01f9596 Mon Sep 17 00:00:00 2001 From: dcb6 Date: Fri, 6 Sep 2024 11:19:17 -0400 Subject: [PATCH] remove notnull from models --- .../main/java/com/seed/alias/model/Type.java | 9 +++-- .../anyAuth/model/auth/TokenResponse.java | 5 ++- .../com/seed/anyAuth/model/user/User.java | 9 +++-- .../audiences/model/foo/ImportingType.java | 5 ++- .../errors/UnauthorizedRequestErrorBody.java | 5 ++- .../errors/UnauthorizedRequestErrorBody.java | 5 ++- .../java/com/seed/api/model/RootType.java | 5 ++- .../seed/api/model/ast/ObjectFieldValue.java | 9 +++-- .../java/com/seed/api/model/RootType.java | 5 ++- .../model/foo/ImportingType.java | 5 ++- .../errors/UnauthorizedRequestErrorBody.java | 5 ++- .../errors/PropertyBasedErrorTestBody.java | 5 ++- .../com/seed/examples/model/Identifier.java | 13 ++++---- .../model/commons/types/Metadata.java | 5 ++- .../com/seed/examples/model/types/Actor.java | 9 +++-- .../seed/examples/model/types/Actress.java | 9 +++-- .../seed/examples/model/types/Directory.java | 5 ++- .../com/seed/examples/model/types/Entity.java | 9 +++-- .../examples/model/types/ExceptionInfo.java | 13 ++++---- .../examples/model/types/ExtendedMovie.java | 17 +++++----- .../com/seed/examples/model/types/File.java | 9 +++-- .../seed/examples/model/types/Migration.java | 9 +++-- .../com/seed/examples/model/types/Moment.java | 13 ++++---- .../com/seed/examples/model/types/Movie.java | 17 +++++----- .../com/seed/examples/model/types/Node.java | 5 ++- .../seed/examples/model/types/Request.java | 5 ++- .../seed/examples/model/types/Response.java | 5 ++- .../examples/model/types/ResponseType.java | 5 ++- .../examples/model/types/StuntDouble.java | 9 +++-- .../seed/extraProperties/model/user/User.java | 5 ++- .../fileUpload/model/service/MyObject.java | 5 ++- .../main/java/com/seed/api/model/Column.java | 5 ++- .../java/com/seed/api/model/ScoredColumn.java | 5 ++- .../api/model/imdb/CreateMovieRequest.java | 5 ++- .../java/com/seed/api/model/imdb/Movie.java | 9 +++-- .../api/model/imdb/CreateMovieRequest.java | 5 ++- .../java/com/seed/api/model/imdb/Movie.java | 9 +++-- .../com/seed/literal/model/SendResponse.java | 5 ++- .../model/inlined/ATopLevelLiteral.java | 5 ++- .../literal/model/reference/SendRequest.java | 9 +++-- .../mixedCase/model/service/NestedUser.java | 9 +++-- .../mixedCase/model/service/Organization.java | 5 ++- .../seed/mixedCase/model/service/User.java | 5 ++- .../seed/multiLineDocs/model/user/User.java | 9 +++-- .../model/auth/TokenResponse.java | 5 ++- .../model/auth/TokenResponse.java | 5 ++- .../model/auth/TokenResponse.java | 5 ++- .../model/auth/TokenResponse.java | 5 ++- .../main/java/com/seed/object/model/Name.java | 9 +++-- .../main/java/com/seed/object/model/Type.java | 33 +++++++++---------- .../seed/objectsWithImports/model/Node.java | 5 ++- .../model/commons/metadata/Metadata.java | 5 ++- .../objectsWithImports/model/file/File.java | 13 ++++---- .../model/file/directory/Directory.java | 5 ++- .../seed/packageYml/model/EchoRequest.java | 5 ++- .../seed/pagination/model/UsernameCursor.java | 5 ++- ...ListUsersExtendedOptionalListResponse.java | 5 ++- .../users/ListUsersExtendedResponse.java | 5 ++- .../seed/pagination/model/users/NextPage.java | 5 ++- .../com/seed/pagination/model/users/User.java | 5 ++- .../model/users/UserOptionalListPage.java | 5 ++- .../seed/pagination/model/users/UserPage.java | 5 ++- .../model/user/NestedUser.java | 9 +++-- .../seed/queryParameters/model/user/User.java | 5 ++- .../model/StringResponse.java | 5 ++- .../responseProperty/model/service/Movie.java | 9 +++-- .../model/service/Response.java | 9 +++-- .../model/service/WithDocs.java | 5 ++- .../main/java/com/seed/api/model/Account.java | 13 ++++---- .../java/com/seed/api/model/BaseResource.java | 9 +++-- .../main/java/com/seed/api/model/Memo.java | 5 ++- .../main/java/com/seed/api/model/Patient.java | 13 ++++---- .../java/com/seed/api/model/Practitioner.java | 13 ++++---- .../main/java/com/seed/api/model/Script.java | 13 ++++---- .../model/dummy/RegularResponse.java | 5 ++- .../streaming/model/dummy/StreamResponse.java | 5 ++- .../streaming/model/dummy/StreamResponse.java | 5 ++- .../java/com/seed/unions/model/types/Bar.java | 5 ++- .../java/com/seed/unions/model/types/Foo.java | 5 ++- .../unions/model/union/GetShapeRequest.java | 5 ++- .../unknownAsAny/model/unknown/MyObject.java | 5 ++- .../java/com/seed/validation/model/Type.java | 9 +++-- .../com/seed/version/model/user/User.java | 9 +++-- .../com/seed/version/model/user/User.java | 9 +++-- 84 files changed, 270 insertions(+), 354 deletions(-) diff --git a/seed/java-model/alias/src/main/java/com/seed/alias/model/Type.java b/seed/java-model/alias/src/main/java/com/seed/alias/model/Type.java index 51c4b28f1d2..1d3cdaf7cc5 100644 --- a/seed/java-model/alias/src/main/java/com/seed/alias/model/Type.java +++ b/seed/java-model/alias/src/main/java/com/seed/alias/model/Type.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.alias.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Type.Builder.class) @@ -59,13 +58,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(@NotNull String id); + NameStage id(String id); Builder from(Type other); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(Type other) { @java.lang.Override @JsonSetter("id") - public NameStage id(@NotNull String id) { + public NameStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/any-auth/src/main/java/com/seed/anyAuth/model/auth/TokenResponse.java b/seed/java-model/any-auth/src/main/java/com/seed/anyAuth/model/auth/TokenResponse.java index 667c21eab09..46e2855d069 100644 --- a/seed/java-model/any-auth/src/main/java/com/seed/anyAuth/model/auth/TokenResponse.java +++ b/seed/java-model/any-auth/src/main/java/com/seed/anyAuth/model/auth/TokenResponse.java @@ -12,7 +12,6 @@ import com.seed.anyAuth.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = TokenResponse.Builder.class) @@ -71,7 +70,7 @@ public static AccessTokenStage builder() { } public interface AccessTokenStage { - ExpiresInStage accessToken(@NotNull String accessToken); + ExpiresInStage accessToken(String accessToken); Builder from(TokenResponse other); } @@ -108,7 +107,7 @@ public Builder from(TokenResponse other) { @java.lang.Override @JsonSetter("access_token") - public ExpiresInStage accessToken(@NotNull String accessToken) { + public ExpiresInStage accessToken(String accessToken) { this.accessToken = Objects.requireNonNull(accessToken, "accessToken must not be null"); return this; } diff --git a/seed/java-model/any-auth/src/main/java/com/seed/anyAuth/model/user/User.java b/seed/java-model/any-auth/src/main/java/com/seed/anyAuth/model/user/User.java index 47ec71fddd6..dc4a652d196 100644 --- a/seed/java-model/any-auth/src/main/java/com/seed/anyAuth/model/user/User.java +++ b/seed/java-model/any-auth/src/main/java/com/seed/anyAuth/model/user/User.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.anyAuth.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = User.Builder.class) @@ -59,13 +58,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(@NotNull String id); + NameStage id(String id); Builder from(User other); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(User other) { @java.lang.Override @JsonSetter("id") - public NameStage id(@NotNull String id) { + public NameStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/audiences/src/main/java/com/seed/audiences/model/foo/ImportingType.java b/seed/java-model/audiences/src/main/java/com/seed/audiences/model/foo/ImportingType.java index 3ae41c38cee..f14a13cc126 100644 --- a/seed/java-model/audiences/src/main/java/com/seed/audiences/model/foo/ImportingType.java +++ b/seed/java-model/audiences/src/main/java/com/seed/audiences/model/foo/ImportingType.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.audiences.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ImportingType.Builder.class) @@ -51,7 +50,7 @@ public static ImportedStage builder() { } public interface ImportedStage { - _FinalStage imported(@NotNull String imported); + _FinalStage imported(String imported); Builder from(ImportingType other); } @@ -74,7 +73,7 @@ public Builder from(ImportingType other) { @java.lang.Override @JsonSetter("imported") - public _FinalStage imported(@NotNull String imported) { + public _FinalStage imported(String imported) { this.imported = Objects.requireNonNull(imported, "imported must not be null"); return this; } diff --git a/seed/java-model/basic-auth-environment-variables/src/main/java/com/seed/basicAuthEnvironmentVariables/model/errors/UnauthorizedRequestErrorBody.java b/seed/java-model/basic-auth-environment-variables/src/main/java/com/seed/basicAuthEnvironmentVariables/model/errors/UnauthorizedRequestErrorBody.java index c41772bece4..c231f6f6998 100644 --- a/seed/java-model/basic-auth-environment-variables/src/main/java/com/seed/basicAuthEnvironmentVariables/model/errors/UnauthorizedRequestErrorBody.java +++ b/seed/java-model/basic-auth-environment-variables/src/main/java/com/seed/basicAuthEnvironmentVariables/model/errors/UnauthorizedRequestErrorBody.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.basicAuthEnvironmentVariables.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UnauthorizedRequestErrorBody.Builder.class) @@ -51,7 +50,7 @@ public static MessageStage builder() { } public interface MessageStage { - _FinalStage message(@NotNull String message); + _FinalStage message(String message); Builder from(UnauthorizedRequestErrorBody other); } @@ -74,7 +73,7 @@ public Builder from(UnauthorizedRequestErrorBody other) { @java.lang.Override @JsonSetter("message") - public _FinalStage message(@NotNull String message) { + public _FinalStage message(String message) { this.message = Objects.requireNonNull(message, "message must not be null"); return this; } diff --git a/seed/java-model/basic-auth/src/main/java/com/seed/basicAuth/model/errors/UnauthorizedRequestErrorBody.java b/seed/java-model/basic-auth/src/main/java/com/seed/basicAuth/model/errors/UnauthorizedRequestErrorBody.java index d1239711521..248d698ff75 100644 --- a/seed/java-model/basic-auth/src/main/java/com/seed/basicAuth/model/errors/UnauthorizedRequestErrorBody.java +++ b/seed/java-model/basic-auth/src/main/java/com/seed/basicAuth/model/errors/UnauthorizedRequestErrorBody.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.basicAuth.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UnauthorizedRequestErrorBody.Builder.class) @@ -51,7 +50,7 @@ public static MessageStage builder() { } public interface MessageStage { - _FinalStage message(@NotNull String message); + _FinalStage message(String message); Builder from(UnauthorizedRequestErrorBody other); } @@ -74,7 +73,7 @@ public Builder from(UnauthorizedRequestErrorBody other) { @java.lang.Override @JsonSetter("message") - public _FinalStage message(@NotNull String message) { + public _FinalStage message(String message) { this.message = Objects.requireNonNull(message, "message must not be null"); return this; } diff --git a/seed/java-model/circular-references-advanced/src/main/java/com/seed/api/model/RootType.java b/seed/java-model/circular-references-advanced/src/main/java/com/seed/api/model/RootType.java index 1c7f1578736..5a19be38863 100644 --- a/seed/java-model/circular-references-advanced/src/main/java/com/seed/api/model/RootType.java +++ b/seed/java-model/circular-references-advanced/src/main/java/com/seed/api/model/RootType.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.api.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RootType.Builder.class) @@ -52,7 +51,7 @@ public static SStage builder() { } public interface SStage { - _FinalStage s(@NotNull String s); + _FinalStage s(String s); Builder from(RootType other); } @@ -75,7 +74,7 @@ public Builder from(RootType other) { @java.lang.Override @JsonSetter("s") - public _FinalStage s(@NotNull String s) { + public _FinalStage s(String s) { this.s = Objects.requireNonNull(s, "s must not be null"); return this; } diff --git a/seed/java-model/circular-references-advanced/src/main/java/com/seed/api/model/ast/ObjectFieldValue.java b/seed/java-model/circular-references-advanced/src/main/java/com/seed/api/model/ast/ObjectFieldValue.java index 405bf11c08a..b531830378b 100644 --- a/seed/java-model/circular-references-advanced/src/main/java/com/seed/api/model/ast/ObjectFieldValue.java +++ b/seed/java-model/circular-references-advanced/src/main/java/com/seed/api/model/ast/ObjectFieldValue.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.api.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ObjectFieldValue.Builder.class) @@ -59,13 +58,13 @@ public static NameStage builder() { } public interface NameStage { - ValueStage name(@NotNull String name); + ValueStage name(String name); Builder from(ObjectFieldValue other); } public interface ValueStage { - _FinalStage value(@NotNull FieldValue value); + _FinalStage value(FieldValue value); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(ObjectFieldValue other) { @java.lang.Override @JsonSetter("name") - public ValueStage name(@NotNull String name) { + public ValueStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("value") - public _FinalStage value(@NotNull FieldValue value) { + public _FinalStage value(FieldValue value) { this.value = Objects.requireNonNull(value, "value must not be null"); return this; } diff --git a/seed/java-model/circular-references/src/main/java/com/seed/api/model/RootType.java b/seed/java-model/circular-references/src/main/java/com/seed/api/model/RootType.java index 1c7f1578736..5a19be38863 100644 --- a/seed/java-model/circular-references/src/main/java/com/seed/api/model/RootType.java +++ b/seed/java-model/circular-references/src/main/java/com/seed/api/model/RootType.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.api.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RootType.Builder.class) @@ -52,7 +51,7 @@ public static SStage builder() { } public interface SStage { - _FinalStage s(@NotNull String s); + _FinalStage s(String s); Builder from(RootType other); } @@ -75,7 +74,7 @@ public Builder from(RootType other) { @java.lang.Override @JsonSetter("s") - public _FinalStage s(@NotNull String s) { + public _FinalStage s(String s) { this.s = Objects.requireNonNull(s, "s must not be null"); return this; } diff --git a/seed/java-model/cross-package-type-names/src/main/java/com/seed/crossPackageTypeNames/model/foo/ImportingType.java b/seed/java-model/cross-package-type-names/src/main/java/com/seed/crossPackageTypeNames/model/foo/ImportingType.java index 898829753e4..3520c18f665 100644 --- a/seed/java-model/cross-package-type-names/src/main/java/com/seed/crossPackageTypeNames/model/foo/ImportingType.java +++ b/seed/java-model/cross-package-type-names/src/main/java/com/seed/crossPackageTypeNames/model/foo/ImportingType.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.crossPackageTypeNames.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ImportingType.Builder.class) @@ -51,7 +50,7 @@ public static ImportedStage builder() { } public interface ImportedStage { - _FinalStage imported(@NotNull String imported); + _FinalStage imported(String imported); Builder from(ImportingType other); } @@ -74,7 +73,7 @@ public Builder from(ImportingType other) { @java.lang.Override @JsonSetter("imported") - public _FinalStage imported(@NotNull String imported) { + public _FinalStage imported(String imported) { this.imported = Objects.requireNonNull(imported, "imported must not be null"); return this; } diff --git a/seed/java-model/custom-auth/src/main/java/com/seed/customAuth/model/errors/UnauthorizedRequestErrorBody.java b/seed/java-model/custom-auth/src/main/java/com/seed/customAuth/model/errors/UnauthorizedRequestErrorBody.java index 8ee1fcd6fd7..87d1f8b600d 100644 --- a/seed/java-model/custom-auth/src/main/java/com/seed/customAuth/model/errors/UnauthorizedRequestErrorBody.java +++ b/seed/java-model/custom-auth/src/main/java/com/seed/customAuth/model/errors/UnauthorizedRequestErrorBody.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.customAuth.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UnauthorizedRequestErrorBody.Builder.class) @@ -51,7 +50,7 @@ public static MessageStage builder() { } public interface MessageStage { - _FinalStage message(@NotNull String message); + _FinalStage message(String message); Builder from(UnauthorizedRequestErrorBody other); } @@ -74,7 +73,7 @@ public Builder from(UnauthorizedRequestErrorBody other) { @java.lang.Override @JsonSetter("message") - public _FinalStage message(@NotNull String message) { + public _FinalStage message(String message) { this.message = Objects.requireNonNull(message, "message must not be null"); return this; } diff --git a/seed/java-model/error-property/src/main/java/com/seed/errorProperty/model/errors/PropertyBasedErrorTestBody.java b/seed/java-model/error-property/src/main/java/com/seed/errorProperty/model/errors/PropertyBasedErrorTestBody.java index 85b406e6400..b92439a4db8 100644 --- a/seed/java-model/error-property/src/main/java/com/seed/errorProperty/model/errors/PropertyBasedErrorTestBody.java +++ b/seed/java-model/error-property/src/main/java/com/seed/errorProperty/model/errors/PropertyBasedErrorTestBody.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.errorProperty.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PropertyBasedErrorTestBody.Builder.class) @@ -51,7 +50,7 @@ public static MessageStage builder() { } public interface MessageStage { - _FinalStage message(@NotNull String message); + _FinalStage message(String message); Builder from(PropertyBasedErrorTestBody other); } @@ -74,7 +73,7 @@ public Builder from(PropertyBasedErrorTestBody other) { @java.lang.Override @JsonSetter("message") - public _FinalStage message(@NotNull String message) { + public _FinalStage message(String message) { this.message = Objects.requireNonNull(message, "message must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/Identifier.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/Identifier.java index 0bab1ef1f5c..a7eaa5f44c5 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/Identifier.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/Identifier.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.examples.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Identifier.Builder.class) @@ -67,17 +66,17 @@ public static TypeStage builder() { } public interface TypeStage { - ValueStage type(@NotNull Type type); + ValueStage type(Type type); Builder from(Identifier other); } public interface ValueStage { - LabelStage value(@NotNull String value); + LabelStage value(String value); } public interface LabelStage { - _FinalStage label(@NotNull String label); + _FinalStage label(String label); } public interface _FinalStage { @@ -104,21 +103,21 @@ public Builder from(Identifier other) { @java.lang.Override @JsonSetter("type") - public ValueStage type(@NotNull Type type) { + public ValueStage type(Type type) { this.type = Objects.requireNonNull(type, "type must not be null"); return this; } @java.lang.Override @JsonSetter("value") - public LabelStage value(@NotNull String value) { + public LabelStage value(String value) { this.value = Objects.requireNonNull(value, "value must not be null"); return this; } @java.lang.Override @JsonSetter("label") - public _FinalStage label(@NotNull String label) { + public _FinalStage label(String label) { this.label = Objects.requireNonNull(label, "label must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/commons/types/Metadata.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/commons/types/Metadata.java index eb1d06667ce..300853b429c 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/commons/types/Metadata.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/commons/types/Metadata.java @@ -13,7 +13,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Metadata.Builder.class) @@ -70,7 +69,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(Metadata other); } @@ -107,7 +106,7 @@ public Builder from(Metadata other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Actor.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Actor.java index d68faba0189..847d9cdd14f 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Actor.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Actor.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.examples.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Actor.Builder.class) @@ -59,13 +58,13 @@ public static NameStage builder() { } public interface NameStage { - IdStage name(@NotNull String name); + IdStage name(String name); Builder from(Actor other); } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(Actor other) { @java.lang.Override @JsonSetter("name") - public IdStage name(@NotNull String name) { + public IdStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Actress.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Actress.java index da4d32714b3..c1c9ec47239 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Actress.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Actress.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.examples.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Actress.Builder.class) @@ -59,13 +58,13 @@ public static NameStage builder() { } public interface NameStage { - IdStage name(@NotNull String name); + IdStage name(String name); Builder from(Actress other); } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(Actress other) { @java.lang.Override @JsonSetter("name") - public IdStage name(@NotNull String name) { + public IdStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Directory.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Directory.java index cbaf3d64236..6a2eaf046df 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Directory.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Directory.java @@ -13,7 +13,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Directory.Builder.class) @@ -70,7 +69,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); Builder from(Directory other); } @@ -107,7 +106,7 @@ public Builder from(Directory other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Entity.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Entity.java index dacd968e805..8c028aa9e99 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Entity.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Entity.java @@ -11,7 +11,6 @@ import com.seed.examples.core.ObjectMappers; import com.seed.examples.model.Type; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Entity.Builder.class) @@ -60,13 +59,13 @@ public static TypeStage builder() { } public interface TypeStage { - NameStage type(@NotNull Type type); + NameStage type(Type type); Builder from(Entity other); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -90,14 +89,14 @@ public Builder from(Entity other) { @java.lang.Override @JsonSetter("type") - public NameStage type(@NotNull Type type) { + public NameStage type(Type type) { this.type = Objects.requireNonNull(type, "type must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ExceptionInfo.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ExceptionInfo.java index 60dca32a611..2bfb13fcc3e 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ExceptionInfo.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ExceptionInfo.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.examples.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ExceptionInfo.Builder.class) @@ -69,17 +68,17 @@ public static ExceptionTypeStage builder() { } public interface ExceptionTypeStage { - ExceptionMessageStage exceptionType(@NotNull String exceptionType); + ExceptionMessageStage exceptionType(String exceptionType); Builder from(ExceptionInfo other); } public interface ExceptionMessageStage { - ExceptionStacktraceStage exceptionMessage(@NotNull String exceptionMessage); + ExceptionStacktraceStage exceptionMessage(String exceptionMessage); } public interface ExceptionStacktraceStage { - _FinalStage exceptionStacktrace(@NotNull String exceptionStacktrace); + _FinalStage exceptionStacktrace(String exceptionStacktrace); } public interface _FinalStage { @@ -107,21 +106,21 @@ public Builder from(ExceptionInfo other) { @java.lang.Override @JsonSetter("exceptionType") - public ExceptionMessageStage exceptionType(@NotNull String exceptionType) { + public ExceptionMessageStage exceptionType(String exceptionType) { this.exceptionType = Objects.requireNonNull(exceptionType, "exceptionType must not be null"); return this; } @java.lang.Override @JsonSetter("exceptionMessage") - public ExceptionStacktraceStage exceptionMessage(@NotNull String exceptionMessage) { + public ExceptionStacktraceStage exceptionMessage(String exceptionMessage) { this.exceptionMessage = Objects.requireNonNull(exceptionMessage, "exceptionMessage must not be null"); return this; } @java.lang.Override @JsonSetter("exceptionStacktrace") - public _FinalStage exceptionStacktrace(@NotNull String exceptionStacktrace) { + public _FinalStage exceptionStacktrace(String exceptionStacktrace) { this.exceptionStacktrace = Objects.requireNonNull(exceptionStacktrace, "exceptionStacktrace must not be null"); return this; diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ExtendedMovie.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ExtendedMovie.java index c2cd2228005..e75ba7be882 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ExtendedMovie.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ExtendedMovie.java @@ -16,7 +16,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ExtendedMovie.Builder.class) @@ -176,17 +175,17 @@ public static IdStage builder() { } public interface IdStage { - TitleStage id(@NotNull String id); + TitleStage id(String id); Builder from(ExtendedMovie other); } public interface TitleStage { - FromStage title(@NotNull String title); + FromStage title(String title); } public interface FromStage { - RatingStage from(@NotNull String from); + RatingStage from(String from); } public interface RatingStage { @@ -194,7 +193,7 @@ public interface RatingStage { } public interface TagStage { - RevenueStage tag(@NotNull String tag); + RevenueStage tag(String tag); } public interface RevenueStage { @@ -267,21 +266,21 @@ public Builder from(ExtendedMovie other) { @java.lang.Override @JsonSetter("id") - public TitleStage id(@NotNull String id) { + public TitleStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("title") - public FromStage title(@NotNull String title) { + public FromStage title(String title) { this.title = Objects.requireNonNull(title, "title must not be null"); return this; } @java.lang.Override @JsonSetter("from") - public RatingStage from(@NotNull String from) { + public RatingStage from(String from) { this.from = Objects.requireNonNull(from, "from must not be null"); return this; } @@ -299,7 +298,7 @@ public TagStage rating(double rating) { @java.lang.Override @JsonSetter("tag") - public RevenueStage tag(@NotNull String tag) { + public RevenueStage tag(String tag) { this.tag = Objects.requireNonNull(tag, "tag must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/File.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/File.java index 176735d8b39..ae6a8424b3a 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/File.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/File.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.examples.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = File.Builder.class) @@ -59,13 +58,13 @@ public static NameStage builder() { } public interface NameStage { - ContentsStage name(@NotNull String name); + ContentsStage name(String name); Builder from(File other); } public interface ContentsStage { - _FinalStage contents(@NotNull String contents); + _FinalStage contents(String contents); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(File other) { @java.lang.Override @JsonSetter("name") - public ContentsStage name(@NotNull String name) { + public ContentsStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("contents") - public _FinalStage contents(@NotNull String contents) { + public _FinalStage contents(String contents) { this.contents = Objects.requireNonNull(contents, "contents must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Migration.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Migration.java index b3b53cccc0a..110e3d25584 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Migration.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Migration.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.examples.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Migration.Builder.class) @@ -59,13 +58,13 @@ public static NameStage builder() { } public interface NameStage { - StatusStage name(@NotNull String name); + StatusStage name(String name); Builder from(Migration other); } public interface StatusStage { - _FinalStage status(@NotNull MigrationStatus status); + _FinalStage status(MigrationStatus status); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(Migration other) { @java.lang.Override @JsonSetter("name") - public StatusStage name(@NotNull String name) { + public StatusStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("status") - public _FinalStage status(@NotNull MigrationStatus status) { + public _FinalStage status(MigrationStatus status) { this.status = Objects.requireNonNull(status, "status must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Moment.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Moment.java index 9c6a065fe73..95471c12435 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Moment.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Moment.java @@ -12,7 +12,6 @@ import java.time.OffsetDateTime; import java.util.Objects; import java.util.UUID; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Moment.Builder.class) @@ -69,17 +68,17 @@ public static IdStage builder() { } public interface IdStage { - DateStage id(@NotNull UUID id); + DateStage id(UUID id); Builder from(Moment other); } public interface DateStage { - DatetimeStage date(@NotNull String date); + DatetimeStage date(String date); } public interface DatetimeStage { - _FinalStage datetime(@NotNull OffsetDateTime datetime); + _FinalStage datetime(OffsetDateTime datetime); } public interface _FinalStage { @@ -106,21 +105,21 @@ public Builder from(Moment other) { @java.lang.Override @JsonSetter("id") - public DateStage id(@NotNull UUID id) { + public DateStage id(UUID id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("date") - public DatetimeStage date(@NotNull String date) { + public DatetimeStage date(String date) { this.date = Objects.requireNonNull(date, "date must not be null"); return this; } @java.lang.Override @JsonSetter("datetime") - public _FinalStage datetime(@NotNull OffsetDateTime datetime) { + public _FinalStage datetime(OffsetDateTime datetime) { this.datetime = Objects.requireNonNull(datetime, "datetime must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Movie.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Movie.java index fec260d9eab..7db8e153390 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Movie.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Movie.java @@ -14,7 +14,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Movie.Builder.class) @@ -163,17 +162,17 @@ public static IdStage builder() { } public interface IdStage { - TitleStage id(@NotNull String id); + TitleStage id(String id); Builder from(Movie other); } public interface TitleStage { - FromStage title(@NotNull String title); + FromStage title(String title); } public interface FromStage { - RatingStage from(@NotNull String from); + RatingStage from(String from); } public interface RatingStage { @@ -181,7 +180,7 @@ public interface RatingStage { } public interface TagStage { - RevenueStage tag(@NotNull String tag); + RevenueStage tag(String tag); } public interface RevenueStage { @@ -245,21 +244,21 @@ public Builder from(Movie other) { @java.lang.Override @JsonSetter("id") - public TitleStage id(@NotNull String id) { + public TitleStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("title") - public FromStage title(@NotNull String title) { + public FromStage title(String title) { this.title = Objects.requireNonNull(title, "title must not be null"); return this; } @java.lang.Override @JsonSetter("from") - public RatingStage from(@NotNull String from) { + public RatingStage from(String from) { this.from = Objects.requireNonNull(from, "from must not be null"); return this; } @@ -277,7 +276,7 @@ public TagStage rating(double rating) { @java.lang.Override @JsonSetter("tag") - public RevenueStage tag(@NotNull String tag) { + public RevenueStage tag(String tag) { this.tag = Objects.requireNonNull(tag, "tag must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Node.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Node.java index 8aeb8c4383e..dacf5eac2eb 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Node.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Node.java @@ -13,7 +13,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Node.Builder.class) @@ -70,7 +69,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); Builder from(Node other); } @@ -107,7 +106,7 @@ public Builder from(Node other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Request.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Request.java index d21cb1ecc1a..dd2b22a7a24 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Request.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Request.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.examples.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Request.Builder.class) @@ -51,7 +50,7 @@ public static RequestStage builder() { } public interface RequestStage { - _FinalStage request(@NotNull Object request); + _FinalStage request(Object request); Builder from(Request other); } @@ -74,7 +73,7 @@ public Builder from(Request other) { @java.lang.Override @JsonSetter("request") - public _FinalStage request(@NotNull Object request) { + public _FinalStage request(Object request) { this.request = Objects.requireNonNull(request, "request must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Response.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Response.java index 907d962384f..8f1bc73f341 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Response.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/Response.java @@ -14,7 +14,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Response.Builder.class) @@ -63,7 +62,7 @@ public static ResponseStage builder() { } public interface ResponseStage { - _FinalStage response(@NotNull Object response); + _FinalStage response(Object response); Builder from(Response other); } @@ -95,7 +94,7 @@ public Builder from(Response other) { @java.lang.Override @JsonSetter("response") - public _FinalStage response(@NotNull Object response) { + public _FinalStage response(Object response) { this.response = Objects.requireNonNull(response, "response must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ResponseType.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ResponseType.java index 76911a7161d..7324d9b9482 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ResponseType.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/ResponseType.java @@ -11,7 +11,6 @@ import com.seed.examples.core.ObjectMappers; import com.seed.examples.model.Type; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ResponseType.Builder.class) @@ -52,7 +51,7 @@ public static TypeStage builder() { } public interface TypeStage { - _FinalStage type(@NotNull Type type); + _FinalStage type(Type type); Builder from(ResponseType other); } @@ -75,7 +74,7 @@ public Builder from(ResponseType other) { @java.lang.Override @JsonSetter("type") - public _FinalStage type(@NotNull Type type) { + public _FinalStage type(Type type) { this.type = Objects.requireNonNull(type, "type must not be null"); return this; } diff --git a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/StuntDouble.java b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/StuntDouble.java index 552d3d41ac5..a015b3e2ccb 100644 --- a/seed/java-model/examples/src/main/java/com/seed/examples/model/types/StuntDouble.java +++ b/seed/java-model/examples/src/main/java/com/seed/examples/model/types/StuntDouble.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.examples.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = StuntDouble.Builder.class) @@ -59,13 +58,13 @@ public static NameStage builder() { } public interface NameStage { - ActorOrActressIdStage name(@NotNull String name); + ActorOrActressIdStage name(String name); Builder from(StuntDouble other); } public interface ActorOrActressIdStage { - _FinalStage actorOrActressId(@NotNull String actorOrActressId); + _FinalStage actorOrActressId(String actorOrActressId); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(StuntDouble other) { @java.lang.Override @JsonSetter("name") - public ActorOrActressIdStage name(@NotNull String name) { + public ActorOrActressIdStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("actorOrActressId") - public _FinalStage actorOrActressId(@NotNull String actorOrActressId) { + public _FinalStage actorOrActressId(String actorOrActressId) { this.actorOrActressId = Objects.requireNonNull(actorOrActressId, "actorOrActressId must not be null"); return this; } diff --git a/seed/java-model/extra-properties/src/main/java/com/seed/extraProperties/model/user/User.java b/seed/java-model/extra-properties/src/main/java/com/seed/extraProperties/model/user/User.java index 5cabdc23ed2..edc621cdd14 100644 --- a/seed/java-model/extra-properties/src/main/java/com/seed/extraProperties/model/user/User.java +++ b/seed/java-model/extra-properties/src/main/java/com/seed/extraProperties/model/user/User.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.extraProperties.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = User.Builder.class) @@ -51,7 +50,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); Builder from(User other); } @@ -74,7 +73,7 @@ public Builder from(User other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/file-upload/src/main/java/com/seed/fileUpload/model/service/MyObject.java b/seed/java-model/file-upload/src/main/java/com/seed/fileUpload/model/service/MyObject.java index 4af4990c3a1..f66e41de17d 100644 --- a/seed/java-model/file-upload/src/main/java/com/seed/fileUpload/model/service/MyObject.java +++ b/seed/java-model/file-upload/src/main/java/com/seed/fileUpload/model/service/MyObject.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.fileUpload.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = MyObject.Builder.class) @@ -51,7 +50,7 @@ public static FooStage builder() { } public interface FooStage { - _FinalStage foo(@NotNull String foo); + _FinalStage foo(String foo); Builder from(MyObject other); } @@ -74,7 +73,7 @@ public Builder from(MyObject other) { @java.lang.Override @JsonSetter("foo") - public _FinalStage foo(@NotNull String foo) { + public _FinalStage foo(String foo) { this.foo = Objects.requireNonNull(foo, "foo must not be null"); return this; } diff --git a/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/Column.java b/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/Column.java index df28f7e8792..4d8f399bac2 100644 --- a/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/Column.java +++ b/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/Column.java @@ -14,7 +14,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Column.Builder.class) @@ -82,7 +81,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(Column other); } @@ -128,7 +127,7 @@ public Builder from(Column other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/ScoredColumn.java b/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/ScoredColumn.java index e3592644bf2..6fc76e0582a 100644 --- a/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/ScoredColumn.java +++ b/seed/java-model/grpc-proto-exhaustive/src/main/java/com/seed/api/model/ScoredColumn.java @@ -13,7 +13,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ScoredColumn.Builder.class) @@ -95,7 +94,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(ScoredColumn other); } @@ -146,7 +145,7 @@ public Builder from(ScoredColumn other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/model/imdb/CreateMovieRequest.java b/seed/java-model/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/model/imdb/CreateMovieRequest.java index 8de1cbbff93..e7c93102f8b 100644 --- a/seed/java-model/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/model/imdb/CreateMovieRequest.java +++ b/seed/java-model/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/model/imdb/CreateMovieRequest.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.api.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateMovieRequest.Builder.class) @@ -59,7 +58,7 @@ public static TitleStage builder() { } public interface TitleStage { - RatingStage title(@NotNull String title); + RatingStage title(String title); Builder from(CreateMovieRequest other); } @@ -89,7 +88,7 @@ public Builder from(CreateMovieRequest other) { @java.lang.Override @JsonSetter("title") - public RatingStage title(@NotNull String title) { + public RatingStage title(String title) { this.title = title; return this; } diff --git a/seed/java-model/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/model/imdb/Movie.java b/seed/java-model/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/model/imdb/Movie.java index 5239966bc1d..bdf7e61bb26 100644 --- a/seed/java-model/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/model/imdb/Movie.java +++ b/seed/java-model/imdb/disable-required-property-builder-checks/src/main/java/com/seed/api/model/imdb/Movie.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.api.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Movie.Builder.class) @@ -70,13 +69,13 @@ public static IdStage builder() { } public interface IdStage { - TitleStage id(@NotNull String id); + TitleStage id(String id); Builder from(Movie other); } public interface TitleStage { - RatingStage title(@NotNull String title); + RatingStage title(String title); } public interface RatingStage { @@ -107,14 +106,14 @@ public Builder from(Movie other) { @java.lang.Override @JsonSetter("id") - public TitleStage id(@NotNull String id) { + public TitleStage id(String id) { this.id = id; return this; } @java.lang.Override @JsonSetter("title") - public RatingStage title(@NotNull String title) { + public RatingStage title(String title) { this.title = title; return this; } diff --git a/seed/java-model/imdb/enable-public-constructors/src/main/java/com/seed/api/model/imdb/CreateMovieRequest.java b/seed/java-model/imdb/enable-public-constructors/src/main/java/com/seed/api/model/imdb/CreateMovieRequest.java index 4930077351d..a74c020627a 100644 --- a/seed/java-model/imdb/enable-public-constructors/src/main/java/com/seed/api/model/imdb/CreateMovieRequest.java +++ b/seed/java-model/imdb/enable-public-constructors/src/main/java/com/seed/api/model/imdb/CreateMovieRequest.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.api.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateMovieRequest.Builder.class) @@ -59,7 +58,7 @@ public static TitleStage builder() { } public interface TitleStage { - RatingStage title(@NotNull String title); + RatingStage title(String title); Builder from(CreateMovieRequest other); } @@ -89,7 +88,7 @@ public Builder from(CreateMovieRequest other) { @java.lang.Override @JsonSetter("title") - public RatingStage title(@NotNull String title) { + public RatingStage title(String title) { this.title = Objects.requireNonNull(title, "title must not be null"); return this; } diff --git a/seed/java-model/imdb/enable-public-constructors/src/main/java/com/seed/api/model/imdb/Movie.java b/seed/java-model/imdb/enable-public-constructors/src/main/java/com/seed/api/model/imdb/Movie.java index b46d9a36734..32833e83cf3 100644 --- a/seed/java-model/imdb/enable-public-constructors/src/main/java/com/seed/api/model/imdb/Movie.java +++ b/seed/java-model/imdb/enable-public-constructors/src/main/java/com/seed/api/model/imdb/Movie.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.api.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Movie.Builder.class) @@ -70,13 +69,13 @@ public static IdStage builder() { } public interface IdStage { - TitleStage id(@NotNull String id); + TitleStage id(String id); Builder from(Movie other); } public interface TitleStage { - RatingStage title(@NotNull String title); + RatingStage title(String title); } public interface RatingStage { @@ -107,14 +106,14 @@ public Builder from(Movie other) { @java.lang.Override @JsonSetter("id") - public TitleStage id(@NotNull String id) { + public TitleStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("title") - public RatingStage title(@NotNull String title) { + public RatingStage title(String title) { this.title = Objects.requireNonNull(title, "title must not be null"); return this; } diff --git a/seed/java-model/literal/src/main/java/com/seed/literal/model/SendResponse.java b/seed/java-model/literal/src/main/java/com/seed/literal/model/SendResponse.java index 42412cc6f72..98afac2b5c3 100644 --- a/seed/java-model/literal/src/main/java/com/seed/literal/model/SendResponse.java +++ b/seed/java-model/literal/src/main/java/com/seed/literal/model/SendResponse.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.literal.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = SendResponse.Builder.class) @@ -64,7 +63,7 @@ public static MessageStage builder() { } public interface MessageStage { - StatusStage message(@NotNull String message); + StatusStage message(String message); Builder from(SendResponse other); } @@ -94,7 +93,7 @@ public Builder from(SendResponse other) { @java.lang.Override @JsonSetter("message") - public StatusStage message(@NotNull String message) { + public StatusStage message(String message) { this.message = Objects.requireNonNull(message, "message must not be null"); return this; } diff --git a/seed/java-model/literal/src/main/java/com/seed/literal/model/inlined/ATopLevelLiteral.java b/seed/java-model/literal/src/main/java/com/seed/literal/model/inlined/ATopLevelLiteral.java index cd1ce3c3014..50929872fd4 100644 --- a/seed/java-model/literal/src/main/java/com/seed/literal/model/inlined/ATopLevelLiteral.java +++ b/seed/java-model/literal/src/main/java/com/seed/literal/model/inlined/ATopLevelLiteral.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.literal.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ATopLevelLiteral.Builder.class) @@ -51,7 +50,7 @@ public static NestedLiteralStage builder() { } public interface NestedLiteralStage { - _FinalStage nestedLiteral(@NotNull ANestedLiteral nestedLiteral); + _FinalStage nestedLiteral(ANestedLiteral nestedLiteral); Builder from(ATopLevelLiteral other); } @@ -74,7 +73,7 @@ public Builder from(ATopLevelLiteral other) { @java.lang.Override @JsonSetter("nestedLiteral") - public _FinalStage nestedLiteral(@NotNull ANestedLiteral nestedLiteral) { + public _FinalStage nestedLiteral(ANestedLiteral nestedLiteral) { this.nestedLiteral = Objects.requireNonNull(nestedLiteral, "nestedLiteral must not be null"); return this; } diff --git a/seed/java-model/literal/src/main/java/com/seed/literal/model/reference/SendRequest.java b/seed/java-model/literal/src/main/java/com/seed/literal/model/reference/SendRequest.java index 2ed6e3e5dc4..45e733ea347 100644 --- a/seed/java-model/literal/src/main/java/com/seed/literal/model/reference/SendRequest.java +++ b/seed/java-model/literal/src/main/java/com/seed/literal/model/reference/SendRequest.java @@ -12,7 +12,6 @@ import com.seed.literal.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = SendRequest.Builder.class) @@ -79,13 +78,13 @@ public static QueryStage builder() { } public interface QueryStage { - ContextStage query(@NotNull String query); + ContextStage query(String query); Builder from(SendRequest other); } public interface ContextStage { - _FinalStage context(@NotNull String context); + _FinalStage context(String context); } public interface _FinalStage { @@ -116,14 +115,14 @@ public Builder from(SendRequest other) { @java.lang.Override @JsonSetter("query") - public ContextStage query(@NotNull String query) { + public ContextStage query(String query) { this.query = Objects.requireNonNull(query, "query must not be null"); return this; } @java.lang.Override @JsonSetter("context") - public _FinalStage context(@NotNull String context) { + public _FinalStage context(String context) { this.context = Objects.requireNonNull(context, "context must not be null"); return this; } diff --git a/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/NestedUser.java b/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/NestedUser.java index c75782585fb..1c55a61bbc2 100644 --- a/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/NestedUser.java +++ b/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/NestedUser.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.mixedCase.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = NestedUser.Builder.class) @@ -59,13 +58,13 @@ public static NameStage builder() { } public interface NameStage { - NestedUserStage name(@NotNull String name); + NestedUserStage name(String name); Builder from(NestedUser other); } public interface NestedUserStage { - _FinalStage nestedUser(@NotNull User nestedUser); + _FinalStage nestedUser(User nestedUser); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(NestedUser other) { @java.lang.Override @JsonSetter("Name") - public NestedUserStage name(@NotNull String name) { + public NestedUserStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("NestedUser") - public _FinalStage nestedUser(@NotNull User nestedUser) { + public _FinalStage nestedUser(User nestedUser) { this.nestedUser = Objects.requireNonNull(nestedUser, "nestedUser must not be null"); return this; } diff --git a/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/Organization.java b/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/Organization.java index e35ecc6062d..83e4e79526d 100644 --- a/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/Organization.java +++ b/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/Organization.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.mixedCase.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Organization.Builder.class) @@ -51,7 +50,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); Builder from(Organization other); } @@ -74,7 +73,7 @@ public Builder from(Organization other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/User.java b/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/User.java index 68e08aa95c8..eed59ccd84c 100644 --- a/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/User.java +++ b/seed/java-model/mixed-case/src/main/java/com/seed/mixedCase/model/service/User.java @@ -15,7 +15,6 @@ import java.util.List; import java.util.Map; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = User.Builder.class) @@ -74,7 +73,7 @@ public static UserNameStage builder() { } public interface UserNameStage { - _FinalStage userName(@NotNull String userName); + _FinalStage userName(String userName); Builder from(User other); } @@ -115,7 +114,7 @@ public Builder from(User other) { @java.lang.Override @JsonSetter("userName") - public _FinalStage userName(@NotNull String userName) { + public _FinalStage userName(String userName) { this.userName = Objects.requireNonNull(userName, "userName must not be null"); return this; } diff --git a/seed/java-model/multi-line-docs/src/main/java/com/seed/multiLineDocs/model/user/User.java b/seed/java-model/multi-line-docs/src/main/java/com/seed/multiLineDocs/model/user/User.java index 27f1a4603ce..3bbfd04cb92 100644 --- a/seed/java-model/multi-line-docs/src/main/java/com/seed/multiLineDocs/model/user/User.java +++ b/seed/java-model/multi-line-docs/src/main/java/com/seed/multiLineDocs/model/user/User.java @@ -12,7 +12,6 @@ import com.seed.multiLineDocs.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = User.Builder.class) @@ -80,13 +79,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(@NotNull String id); + NameStage id(String id); Builder from(User other); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -117,7 +116,7 @@ public Builder from(User other) { @java.lang.Override @JsonSetter("id") - public NameStage id(@NotNull String id) { + public NameStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @@ -133,7 +132,7 @@ public NameStage id(@NotNull String id) { */ @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/oauth-client-credentials-default/src/main/java/com/seed/oauthClientCredentialsDefault/model/auth/TokenResponse.java b/seed/java-model/oauth-client-credentials-default/src/main/java/com/seed/oauthClientCredentialsDefault/model/auth/TokenResponse.java index 442288db2ff..1ae30369b13 100644 --- a/seed/java-model/oauth-client-credentials-default/src/main/java/com/seed/oauthClientCredentialsDefault/model/auth/TokenResponse.java +++ b/seed/java-model/oauth-client-credentials-default/src/main/java/com/seed/oauthClientCredentialsDefault/model/auth/TokenResponse.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.oauthClientCredentialsDefault.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = TokenResponse.Builder.class) @@ -59,7 +58,7 @@ public static AccessTokenStage builder() { } public interface AccessTokenStage { - ExpiresInStage accessToken(@NotNull String accessToken); + ExpiresInStage accessToken(String accessToken); Builder from(TokenResponse other); } @@ -89,7 +88,7 @@ public Builder from(TokenResponse other) { @java.lang.Override @JsonSetter("access_token") - public ExpiresInStage accessToken(@NotNull String accessToken) { + public ExpiresInStage accessToken(String accessToken) { this.accessToken = Objects.requireNonNull(accessToken, "accessToken must not be null"); return this; } diff --git a/seed/java-model/oauth-client-credentials-environment-variables/src/main/java/com/seed/oauthClientCredentialsEnvironmentVariables/model/auth/TokenResponse.java b/seed/java-model/oauth-client-credentials-environment-variables/src/main/java/com/seed/oauthClientCredentialsEnvironmentVariables/model/auth/TokenResponse.java index c104ce72cc4..8b81e240721 100644 --- a/seed/java-model/oauth-client-credentials-environment-variables/src/main/java/com/seed/oauthClientCredentialsEnvironmentVariables/model/auth/TokenResponse.java +++ b/seed/java-model/oauth-client-credentials-environment-variables/src/main/java/com/seed/oauthClientCredentialsEnvironmentVariables/model/auth/TokenResponse.java @@ -12,7 +12,6 @@ import com.seed.oauthClientCredentialsEnvironmentVariables.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = TokenResponse.Builder.class) @@ -71,7 +70,7 @@ public static AccessTokenStage builder() { } public interface AccessTokenStage { - ExpiresInStage accessToken(@NotNull String accessToken); + ExpiresInStage accessToken(String accessToken); Builder from(TokenResponse other); } @@ -108,7 +107,7 @@ public Builder from(TokenResponse other) { @java.lang.Override @JsonSetter("access_token") - public ExpiresInStage accessToken(@NotNull String accessToken) { + public ExpiresInStage accessToken(String accessToken) { this.accessToken = Objects.requireNonNull(accessToken, "accessToken must not be null"); return this; } diff --git a/seed/java-model/oauth-client-credentials-nested-root/src/main/java/com/seed/oauthClientCredentials/model/auth/TokenResponse.java b/seed/java-model/oauth-client-credentials-nested-root/src/main/java/com/seed/oauthClientCredentials/model/auth/TokenResponse.java index 97f973afc18..ba0270292f2 100644 --- a/seed/java-model/oauth-client-credentials-nested-root/src/main/java/com/seed/oauthClientCredentials/model/auth/TokenResponse.java +++ b/seed/java-model/oauth-client-credentials-nested-root/src/main/java/com/seed/oauthClientCredentials/model/auth/TokenResponse.java @@ -12,7 +12,6 @@ import com.seed.oauthClientCredentials.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = TokenResponse.Builder.class) @@ -71,7 +70,7 @@ public static AccessTokenStage builder() { } public interface AccessTokenStage { - ExpiresInStage accessToken(@NotNull String accessToken); + ExpiresInStage accessToken(String accessToken); Builder from(TokenResponse other); } @@ -108,7 +107,7 @@ public Builder from(TokenResponse other) { @java.lang.Override @JsonSetter("access_token") - public ExpiresInStage accessToken(@NotNull String accessToken) { + public ExpiresInStage accessToken(String accessToken) { this.accessToken = Objects.requireNonNull(accessToken, "accessToken must not be null"); return this; } diff --git a/seed/java-model/oauth-client-credentials/src/main/java/com/seed/oauthClientCredentials/model/auth/TokenResponse.java b/seed/java-model/oauth-client-credentials/src/main/java/com/seed/oauthClientCredentials/model/auth/TokenResponse.java index 97f973afc18..ba0270292f2 100644 --- a/seed/java-model/oauth-client-credentials/src/main/java/com/seed/oauthClientCredentials/model/auth/TokenResponse.java +++ b/seed/java-model/oauth-client-credentials/src/main/java/com/seed/oauthClientCredentials/model/auth/TokenResponse.java @@ -12,7 +12,6 @@ import com.seed.oauthClientCredentials.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = TokenResponse.Builder.class) @@ -71,7 +70,7 @@ public static AccessTokenStage builder() { } public interface AccessTokenStage { - ExpiresInStage accessToken(@NotNull String accessToken); + ExpiresInStage accessToken(String accessToken); Builder from(TokenResponse other); } @@ -108,7 +107,7 @@ public Builder from(TokenResponse other) { @java.lang.Override @JsonSetter("access_token") - public ExpiresInStage accessToken(@NotNull String accessToken) { + public ExpiresInStage accessToken(String accessToken) { this.accessToken = Objects.requireNonNull(accessToken, "accessToken must not be null"); return this; } diff --git a/seed/java-model/object/src/main/java/com/seed/object/model/Name.java b/seed/java-model/object/src/main/java/com/seed/object/model/Name.java index c32e8018f90..e6f2f5dc7de 100644 --- a/seed/java-model/object/src/main/java/com/seed/object/model/Name.java +++ b/seed/java-model/object/src/main/java/com/seed/object/model/Name.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.object.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Name.Builder.class) @@ -59,13 +58,13 @@ public static IdStage builder() { } public interface IdStage { - ValueStage id(@NotNull String id); + ValueStage id(String id); Builder from(Name other); } public interface ValueStage { - _FinalStage value(@NotNull String value); + _FinalStage value(String value); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(Name other) { @java.lang.Override @JsonSetter("id") - public ValueStage id(@NotNull String id) { + public ValueStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("value") - public _FinalStage value(@NotNull String value) { + public _FinalStage value(String value) { this.value = Objects.requireNonNull(value, "value must not be null"); return this; } diff --git a/seed/java-model/object/src/main/java/com/seed/object/model/Type.java b/seed/java-model/object/src/main/java/com/seed/object/model/Type.java index 62144b10394..c2d074339f1 100644 --- a/seed/java-model/object/src/main/java/com/seed/object/model/Type.java +++ b/seed/java-model/object/src/main/java/com/seed/object/model/Type.java @@ -21,7 +21,6 @@ import java.util.Optional; import java.util.Set; import java.util.UUID; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Type.Builder.class) @@ -310,7 +309,7 @@ public interface TwoStage { } public interface ThreeStage { - FourStage three(@NotNull String three); + FourStage three(String three); } public interface FourStage { @@ -322,27 +321,27 @@ public interface FiveStage { } public interface SixStage { - SevenStage six(@NotNull OffsetDateTime six); + SevenStage six(OffsetDateTime six); } public interface SevenStage { - EightStage seven(@NotNull String seven); + EightStage seven(String seven); } public interface EightStage { - NineStage eight(@NotNull UUID eight); + NineStage eight(UUID eight); } public interface NineStage { - FourteenStage nine(@NotNull byte[] nine); + FourteenStage nine(byte[] nine); } public interface FourteenStage { - NineteenStage fourteen(@NotNull Object fourteen); + NineteenStage fourteen(Object fourteen); } public interface NineteenStage { - TwentyStage nineteen(@NotNull Name nineteen); + TwentyStage nineteen(Name nineteen); } public interface TwentyStage { @@ -358,7 +357,7 @@ public interface TwentytwoStage { } public interface TwentythreeStage { - _FinalStage twentythree(@NotNull BigInteger twentythree); + _FinalStage twentythree(BigInteger twentythree); } public interface _FinalStage { @@ -512,7 +511,7 @@ public ThreeStage two(double two) { @java.lang.Override @JsonSetter("three") - public FourStage three(@NotNull String three) { + public FourStage three(String three) { this.three = Objects.requireNonNull(three, "three must not be null"); return this; } @@ -533,42 +532,42 @@ public SixStage five(long five) { @java.lang.Override @JsonSetter("six") - public SevenStage six(@NotNull OffsetDateTime six) { + public SevenStage six(OffsetDateTime six) { this.six = Objects.requireNonNull(six, "six must not be null"); return this; } @java.lang.Override @JsonSetter("seven") - public EightStage seven(@NotNull String seven) { + public EightStage seven(String seven) { this.seven = Objects.requireNonNull(seven, "seven must not be null"); return this; } @java.lang.Override @JsonSetter("eight") - public NineStage eight(@NotNull UUID eight) { + public NineStage eight(UUID eight) { this.eight = Objects.requireNonNull(eight, "eight must not be null"); return this; } @java.lang.Override @JsonSetter("nine") - public FourteenStage nine(@NotNull byte[] nine) { + public FourteenStage nine(byte[] nine) { this.nine = Objects.requireNonNull(nine, "nine must not be null"); return this; } @java.lang.Override @JsonSetter("fourteen") - public NineteenStage fourteen(@NotNull Object fourteen) { + public NineteenStage fourteen(Object fourteen) { this.fourteen = Objects.requireNonNull(fourteen, "fourteen must not be null"); return this; } @java.lang.Override @JsonSetter("nineteen") - public TwentyStage nineteen(@NotNull Name nineteen) { + public TwentyStage nineteen(Name nineteen) { this.nineteen = Objects.requireNonNull(nineteen, "nineteen must not be null"); return this; } @@ -596,7 +595,7 @@ public TwentythreeStage twentytwo(double twentytwo) { @java.lang.Override @JsonSetter("twentythree") - public _FinalStage twentythree(@NotNull BigInteger twentythree) { + public _FinalStage twentythree(BigInteger twentythree) { this.twentythree = Objects.requireNonNull(twentythree, "twentythree must not be null"); return this; } diff --git a/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/Node.java b/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/Node.java index 094a6a775cd..f34aae9bcbc 100644 --- a/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/Node.java +++ b/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/Node.java @@ -13,7 +13,6 @@ import com.seed.objectsWithImports.model.commons.metadata.Metadata; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Node.Builder.class) @@ -70,7 +69,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(Node other); } @@ -107,7 +106,7 @@ public Builder from(Node other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/commons/metadata/Metadata.java b/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/commons/metadata/Metadata.java index 4cc4f12a553..bf120cc25f9 100644 --- a/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/commons/metadata/Metadata.java +++ b/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/commons/metadata/Metadata.java @@ -13,7 +13,6 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Metadata.Builder.class) @@ -62,7 +61,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(Metadata other); } @@ -92,7 +91,7 @@ public Builder from(Metadata other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/file/File.java b/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/file/File.java index 3b6aee3af23..89c614d33dc 100644 --- a/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/file/File.java +++ b/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/file/File.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.objectsWithImports.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = File.Builder.class) @@ -67,17 +66,17 @@ public static NameStage builder() { } public interface NameStage { - ContentsStage name(@NotNull String name); + ContentsStage name(String name); Builder from(File other); } public interface ContentsStage { - InfoStage contents(@NotNull String contents); + InfoStage contents(String contents); } public interface InfoStage { - _FinalStage info(@NotNull FileInfo info); + _FinalStage info(FileInfo info); } public interface _FinalStage { @@ -104,21 +103,21 @@ public Builder from(File other) { @java.lang.Override @JsonSetter("name") - public ContentsStage name(@NotNull String name) { + public ContentsStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("contents") - public InfoStage contents(@NotNull String contents) { + public InfoStage contents(String contents) { this.contents = Objects.requireNonNull(contents, "contents must not be null"); return this; } @java.lang.Override @JsonSetter("info") - public _FinalStage info(@NotNull FileInfo info) { + public _FinalStage info(FileInfo info) { this.info = Objects.requireNonNull(info, "info must not be null"); return this; } diff --git a/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/file/directory/Directory.java b/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/file/directory/Directory.java index 98600e9acee..d41dc162fe9 100644 --- a/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/file/directory/Directory.java +++ b/seed/java-model/objects-with-imports/src/main/java/com/seed/objectsWithImports/model/file/directory/Directory.java @@ -14,7 +14,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Directory.Builder.class) @@ -71,7 +70,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); Builder from(Directory other); } @@ -108,7 +107,7 @@ public Builder from(Directory other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/package-yml/src/main/java/com/seed/packageYml/model/EchoRequest.java b/seed/java-model/package-yml/src/main/java/com/seed/packageYml/model/EchoRequest.java index ccf05ae05aa..509bf61b1fc 100644 --- a/seed/java-model/package-yml/src/main/java/com/seed/packageYml/model/EchoRequest.java +++ b/seed/java-model/package-yml/src/main/java/com/seed/packageYml/model/EchoRequest.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.packageYml.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EchoRequest.Builder.class) @@ -59,7 +58,7 @@ public static NameStage builder() { } public interface NameStage { - SizeStage name(@NotNull String name); + SizeStage name(String name); Builder from(EchoRequest other); } @@ -89,7 +88,7 @@ public Builder from(EchoRequest other) { @java.lang.Override @JsonSetter("name") - public SizeStage name(@NotNull String name) { + public SizeStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/UsernameCursor.java b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/UsernameCursor.java index e7dc23beaa4..3ecea294bca 100644 --- a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/UsernameCursor.java +++ b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/UsernameCursor.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.pagination.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UsernameCursor.Builder.class) @@ -51,7 +50,7 @@ public static CursorStage builder() { } public interface CursorStage { - _FinalStage cursor(@NotNull UsernamePage cursor); + _FinalStage cursor(UsernamePage cursor); Builder from(UsernameCursor other); } @@ -74,7 +73,7 @@ public Builder from(UsernameCursor other) { @java.lang.Override @JsonSetter("cursor") - public _FinalStage cursor(@NotNull UsernamePage cursor) { + public _FinalStage cursor(UsernamePage cursor) { this.cursor = Objects.requireNonNull(cursor, "cursor must not be null"); return this; } diff --git a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/ListUsersExtendedOptionalListResponse.java b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/ListUsersExtendedOptionalListResponse.java index 391ad5f79d8..ecef2f4dd96 100644 --- a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/ListUsersExtendedOptionalListResponse.java +++ b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/ListUsersExtendedOptionalListResponse.java @@ -13,7 +13,6 @@ import java.util.Objects; import java.util.Optional; import java.util.UUID; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListUsersExtendedOptionalListResponse.Builder.class) @@ -76,7 +75,7 @@ public static DataStage builder() { } public interface DataStage { - TotalCountStage data(@NotNull UserOptionalListContainer data); + TotalCountStage data(UserOptionalListContainer data); Builder from(ListUsersExtendedOptionalListResponse other); } @@ -113,7 +112,7 @@ public Builder from(ListUsersExtendedOptionalListResponse other) { @java.lang.Override @JsonSetter("data") - public TotalCountStage data(@NotNull UserOptionalListContainer data) { + public TotalCountStage data(UserOptionalListContainer data) { this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/ListUsersExtendedResponse.java b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/ListUsersExtendedResponse.java index 5688b921cf3..9a514630f79 100644 --- a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/ListUsersExtendedResponse.java +++ b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/ListUsersExtendedResponse.java @@ -13,7 +13,6 @@ import java.util.Objects; import java.util.Optional; import java.util.UUID; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListUsersExtendedResponse.Builder.class) @@ -75,7 +74,7 @@ public static DataStage builder() { } public interface DataStage { - TotalCountStage data(@NotNull UserListContainer data); + TotalCountStage data(UserListContainer data); Builder from(ListUsersExtendedResponse other); } @@ -112,7 +111,7 @@ public Builder from(ListUsersExtendedResponse other) { @java.lang.Override @JsonSetter("data") - public TotalCountStage data(@NotNull UserListContainer data) { + public TotalCountStage data(UserListContainer data) { this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/NextPage.java b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/NextPage.java index 22d7ad90498..3ed36795fba 100644 --- a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/NextPage.java +++ b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/NextPage.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.pagination.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = NextPage.Builder.class) @@ -65,7 +64,7 @@ public interface PageStage { } public interface StartingAfterStage { - _FinalStage startingAfter(@NotNull String startingAfter); + _FinalStage startingAfter(String startingAfter); } public interface _FinalStage { @@ -96,7 +95,7 @@ public StartingAfterStage page(int page) { @java.lang.Override @JsonSetter("starting_after") - public _FinalStage startingAfter(@NotNull String startingAfter) { + public _FinalStage startingAfter(String startingAfter) { this.startingAfter = Objects.requireNonNull(startingAfter, "startingAfter must not be null"); return this; } diff --git a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/User.java b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/User.java index c455e70c53e..d96d8d0bf41 100644 --- a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/User.java +++ b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/User.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.pagination.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = User.Builder.class) @@ -59,7 +58,7 @@ public static NameStage builder() { } public interface NameStage { - IdStage name(@NotNull String name); + IdStage name(String name); Builder from(User other); } @@ -89,7 +88,7 @@ public Builder from(User other) { @java.lang.Override @JsonSetter("name") - public IdStage name(@NotNull String name) { + public IdStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/UserOptionalListPage.java b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/UserOptionalListPage.java index 9927d15ce0f..2eabd122086 100644 --- a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/UserOptionalListPage.java +++ b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/UserOptionalListPage.java @@ -13,7 +13,6 @@ import java.util.Objects; import java.util.Optional; import java.util.UUID; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UserOptionalListPage.Builder.class) @@ -64,7 +63,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(@NotNull UserOptionalListContainer data); + _FinalStage data(UserOptionalListContainer data); Builder from(UserOptionalListPage other); } @@ -94,7 +93,7 @@ public Builder from(UserOptionalListPage other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(@NotNull UserOptionalListContainer data) { + public _FinalStage data(UserOptionalListContainer data) { this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/UserPage.java b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/UserPage.java index 95f4c00811e..43a1af80fda 100644 --- a/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/UserPage.java +++ b/seed/java-model/pagination/src/main/java/com/seed/pagination/model/users/UserPage.java @@ -13,7 +13,6 @@ import java.util.Objects; import java.util.Optional; import java.util.UUID; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UserPage.Builder.class) @@ -64,7 +63,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(@NotNull UserListContainer data); + _FinalStage data(UserListContainer data); Builder from(UserPage other); } @@ -94,7 +93,7 @@ public Builder from(UserPage other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(@NotNull UserListContainer data) { + public _FinalStage data(UserListContainer data) { this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/seed/java-model/query-parameters/src/main/java/com/seed/queryParameters/model/user/NestedUser.java b/seed/java-model/query-parameters/src/main/java/com/seed/queryParameters/model/user/NestedUser.java index f52cb9d8541..f24cf913137 100644 --- a/seed/java-model/query-parameters/src/main/java/com/seed/queryParameters/model/user/NestedUser.java +++ b/seed/java-model/query-parameters/src/main/java/com/seed/queryParameters/model/user/NestedUser.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.queryParameters.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = NestedUser.Builder.class) @@ -59,13 +58,13 @@ public static NameStage builder() { } public interface NameStage { - UserStage name(@NotNull String name); + UserStage name(String name); Builder from(NestedUser other); } public interface UserStage { - _FinalStage user(@NotNull User user); + _FinalStage user(User user); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(NestedUser other) { @java.lang.Override @JsonSetter("name") - public UserStage name(@NotNull String name) { + public UserStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("user") - public _FinalStage user(@NotNull User user) { + public _FinalStage user(User user) { this.user = Objects.requireNonNull(user, "user must not be null"); return this; } diff --git a/seed/java-model/query-parameters/src/main/java/com/seed/queryParameters/model/user/User.java b/seed/java-model/query-parameters/src/main/java/com/seed/queryParameters/model/user/User.java index 5cad13a7f22..2924cfb8158 100644 --- a/seed/java-model/query-parameters/src/main/java/com/seed/queryParameters/model/user/User.java +++ b/seed/java-model/query-parameters/src/main/java/com/seed/queryParameters/model/user/User.java @@ -13,7 +13,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = User.Builder.class) @@ -62,7 +61,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); Builder from(User other); } @@ -94,7 +93,7 @@ public Builder from(User other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/StringResponse.java b/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/StringResponse.java index 7060582cd19..4dca8827412 100644 --- a/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/StringResponse.java +++ b/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/StringResponse.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.responseProperty.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = StringResponse.Builder.class) @@ -51,7 +50,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(@NotNull String data); + _FinalStage data(String data); Builder from(StringResponse other); } @@ -74,7 +73,7 @@ public Builder from(StringResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(@NotNull String data) { + public _FinalStage data(String data) { this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/Movie.java b/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/Movie.java index 9ab146e6b45..5643225cced 100644 --- a/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/Movie.java +++ b/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/Movie.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.responseProperty.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Movie.Builder.class) @@ -59,13 +58,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(@NotNull String id); + NameStage id(String id); Builder from(Movie other); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(Movie other) { @java.lang.Override @JsonSetter("id") - public NameStage id(@NotNull String id) { + public NameStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/Response.java b/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/Response.java index c83e45c33f0..00bad54555d 100644 --- a/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/Response.java +++ b/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/Response.java @@ -14,7 +14,6 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Response.Builder.class) @@ -73,13 +72,13 @@ public static DocsStage builder() { } public interface DocsStage { - DataStage docs(@NotNull String docs); + DataStage docs(String docs); Builder from(Response other); } public interface DataStage { - _FinalStage data(@NotNull Movie data); + _FinalStage data(Movie data); } public interface _FinalStage { @@ -112,14 +111,14 @@ public Builder from(Response other) { @java.lang.Override @JsonSetter("docs") - public DataStage docs(@NotNull String docs) { + public DataStage docs(String docs) { this.docs = Objects.requireNonNull(docs, "docs must not be null"); return this; } @java.lang.Override @JsonSetter("data") - public _FinalStage data(@NotNull Movie data) { + public _FinalStage data(Movie data) { this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/WithDocs.java b/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/WithDocs.java index 3e8eda6c960..d22b7e475d2 100644 --- a/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/WithDocs.java +++ b/seed/java-model/response-property/src/main/java/com/seed/responseProperty/model/service/WithDocs.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.responseProperty.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = WithDocs.Builder.class) @@ -52,7 +51,7 @@ public static DocsStage builder() { } public interface DocsStage { - _FinalStage docs(@NotNull String docs); + _FinalStage docs(String docs); Builder from(WithDocs other); } @@ -75,7 +74,7 @@ public Builder from(WithDocs other) { @java.lang.Override @JsonSetter("docs") - public _FinalStage docs(@NotNull String docs) { + public _FinalStage docs(String docs) { this.docs = Objects.requireNonNull(docs, "docs must not be null"); return this; } diff --git a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Account.java b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Account.java index 2eab96cd158..7065fe468ac 100644 --- a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Account.java +++ b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Account.java @@ -14,7 +14,6 @@ import java.util.List; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Account.Builder.class) @@ -114,17 +113,17 @@ public static IdStage builder() { } public interface IdStage { - MemoStage id(@NotNull String id); + MemoStage id(String id); Builder from(Account other); } public interface MemoStage { - NameStage memo(@NotNull Memo memo); + NameStage memo(Memo memo); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -174,21 +173,21 @@ public Builder from(Account other) { @java.lang.Override @JsonSetter("id") - public MemoStage id(@NotNull String id) { + public MemoStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("memo") - public NameStage memo(@NotNull Memo memo) { + public NameStage memo(Memo memo) { this.memo = Objects.requireNonNull(memo, "memo must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/BaseResource.java b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/BaseResource.java index 469c8723f21..1dfb968f333 100644 --- a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/BaseResource.java +++ b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/BaseResource.java @@ -13,7 +13,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BaseResource.Builder.class) @@ -73,13 +72,13 @@ public static IdStage builder() { } public interface IdStage { - MemoStage id(@NotNull String id); + MemoStage id(String id); Builder from(BaseResource other); } public interface MemoStage { - _FinalStage memo(@NotNull Memo memo); + _FinalStage memo(Memo memo); } public interface _FinalStage { @@ -112,14 +111,14 @@ public Builder from(BaseResource other) { @java.lang.Override @JsonSetter("id") - public MemoStage id(@NotNull String id) { + public MemoStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("memo") - public _FinalStage memo(@NotNull Memo memo) { + public _FinalStage memo(Memo memo) { this.memo = Objects.requireNonNull(memo, "memo must not be null"); return this; } diff --git a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Memo.java b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Memo.java index 557a75513c4..0ae08e034a6 100644 --- a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Memo.java +++ b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Memo.java @@ -12,7 +12,6 @@ import com.seed.api.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Memo.Builder.class) @@ -61,7 +60,7 @@ public static DescriptionStage builder() { } public interface DescriptionStage { - _FinalStage description(@NotNull String description); + _FinalStage description(String description); Builder from(Memo other); } @@ -91,7 +90,7 @@ public Builder from(Memo other) { @java.lang.Override @JsonSetter("description") - public _FinalStage description(@NotNull String description) { + public _FinalStage description(String description) { this.description = Objects.requireNonNull(description, "description must not be null"); return this; } diff --git a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Patient.java b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Patient.java index 4af0fe27e1b..4ad12034782 100644 --- a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Patient.java +++ b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Patient.java @@ -13,7 +13,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Patient.Builder.class) @@ -98,17 +97,17 @@ public static IdStage builder() { } public interface IdStage { - MemoStage id(@NotNull String id); + MemoStage id(String id); Builder from(Patient other); } public interface MemoStage { - NameStage memo(@NotNull Memo memo); + NameStage memo(Memo memo); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -153,21 +152,21 @@ public Builder from(Patient other) { @java.lang.Override @JsonSetter("id") - public MemoStage id(@NotNull String id) { + public MemoStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("memo") - public NameStage memo(@NotNull Memo memo) { + public NameStage memo(Memo memo) { this.memo = Objects.requireNonNull(memo, "memo must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Practitioner.java b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Practitioner.java index 75c94ba87a6..dd299d39d00 100644 --- a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Practitioner.java +++ b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Practitioner.java @@ -13,7 +13,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Practitioner.Builder.class) @@ -89,17 +88,17 @@ public static IdStage builder() { } public interface IdStage { - MemoStage id(@NotNull String id); + MemoStage id(String id); Builder from(Practitioner other); } public interface MemoStage { - NameStage memo(@NotNull Memo memo); + NameStage memo(Memo memo); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -135,21 +134,21 @@ public Builder from(Practitioner other) { @java.lang.Override @JsonSetter("id") - public MemoStage id(@NotNull String id) { + public MemoStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("memo") - public NameStage memo(@NotNull Memo memo) { + public NameStage memo(Memo memo) { this.memo = Objects.requireNonNull(memo, "memo must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Script.java b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Script.java index bdd6be9c77f..db5437fa40d 100644 --- a/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Script.java +++ b/seed/java-model/simple-fhir/src/main/java/com/seed/api/model/Script.java @@ -13,7 +13,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Script.Builder.class) @@ -89,17 +88,17 @@ public static IdStage builder() { } public interface IdStage { - MemoStage id(@NotNull String id); + MemoStage id(String id); Builder from(Script other); } public interface MemoStage { - NameStage memo(@NotNull Memo memo); + NameStage memo(Memo memo); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -135,21 +134,21 @@ public Builder from(Script other) { @java.lang.Override @JsonSetter("id") - public MemoStage id(@NotNull String id) { + public MemoStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("memo") - public NameStage memo(@NotNull Memo memo) { + public NameStage memo(Memo memo) { this.memo = Objects.requireNonNull(memo, "memo must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/streaming-parameter/src/main/java/com/seed/streaming/model/dummy/RegularResponse.java b/seed/java-model/streaming-parameter/src/main/java/com/seed/streaming/model/dummy/RegularResponse.java index 91dcf563d4f..45aecb0b654 100644 --- a/seed/java-model/streaming-parameter/src/main/java/com/seed/streaming/model/dummy/RegularResponse.java +++ b/seed/java-model/streaming-parameter/src/main/java/com/seed/streaming/model/dummy/RegularResponse.java @@ -12,7 +12,6 @@ import com.seed.streaming.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RegularResponse.Builder.class) @@ -61,7 +60,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(RegularResponse other); } @@ -91,7 +90,7 @@ public Builder from(RegularResponse other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/streaming-parameter/src/main/java/com/seed/streaming/model/dummy/StreamResponse.java b/seed/java-model/streaming-parameter/src/main/java/com/seed/streaming/model/dummy/StreamResponse.java index b40be2b7021..9c6183091fc 100644 --- a/seed/java-model/streaming-parameter/src/main/java/com/seed/streaming/model/dummy/StreamResponse.java +++ b/seed/java-model/streaming-parameter/src/main/java/com/seed/streaming/model/dummy/StreamResponse.java @@ -12,7 +12,6 @@ import com.seed.streaming.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = StreamResponse.Builder.class) @@ -61,7 +60,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(StreamResponse other); } @@ -91,7 +90,7 @@ public Builder from(StreamResponse other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/streaming/src/main/java/com/seed/streaming/model/dummy/StreamResponse.java b/seed/java-model/streaming/src/main/java/com/seed/streaming/model/dummy/StreamResponse.java index b40be2b7021..9c6183091fc 100644 --- a/seed/java-model/streaming/src/main/java/com/seed/streaming/model/dummy/StreamResponse.java +++ b/seed/java-model/streaming/src/main/java/com/seed/streaming/model/dummy/StreamResponse.java @@ -12,7 +12,6 @@ import com.seed.streaming.core.ObjectMappers; import java.util.Objects; import java.util.Optional; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = StreamResponse.Builder.class) @@ -61,7 +60,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(StreamResponse other); } @@ -91,7 +90,7 @@ public Builder from(StreamResponse other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/unions/src/main/java/com/seed/unions/model/types/Bar.java b/seed/java-model/unions/src/main/java/com/seed/unions/model/types/Bar.java index 7bbe1e7fccd..d86bc22b6b5 100644 --- a/seed/java-model/unions/src/main/java/com/seed/unions/model/types/Bar.java +++ b/seed/java-model/unions/src/main/java/com/seed/unions/model/types/Bar.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.unions.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Bar.Builder.class) @@ -51,7 +50,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); Builder from(Bar other); } @@ -74,7 +73,7 @@ public Builder from(Bar other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/unions/src/main/java/com/seed/unions/model/types/Foo.java b/seed/java-model/unions/src/main/java/com/seed/unions/model/types/Foo.java index 7e63b53cbd1..564bb32ae02 100644 --- a/seed/java-model/unions/src/main/java/com/seed/unions/model/types/Foo.java +++ b/seed/java-model/unions/src/main/java/com/seed/unions/model/types/Foo.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.unions.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Foo.Builder.class) @@ -51,7 +50,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); Builder from(Foo other); } @@ -74,7 +73,7 @@ public Builder from(Foo other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/unions/src/main/java/com/seed/unions/model/union/GetShapeRequest.java b/seed/java-model/unions/src/main/java/com/seed/unions/model/union/GetShapeRequest.java index c1518d3f5e7..090c876ae44 100644 --- a/seed/java-model/unions/src/main/java/com/seed/unions/model/union/GetShapeRequest.java +++ b/seed/java-model/unions/src/main/java/com/seed/unions/model/union/GetShapeRequest.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.unions.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetShapeRequest.Builder.class) @@ -51,7 +50,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(@NotNull String id); + _FinalStage id(String id); Builder from(GetShapeRequest other); } @@ -74,7 +73,7 @@ public Builder from(GetShapeRequest other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(@NotNull String id) { + public _FinalStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/seed/java-model/unknown/src/main/java/com/seed/unknownAsAny/model/unknown/MyObject.java b/seed/java-model/unknown/src/main/java/com/seed/unknownAsAny/model/unknown/MyObject.java index c80fbd52729..4966e5e2651 100644 --- a/seed/java-model/unknown/src/main/java/com/seed/unknownAsAny/model/unknown/MyObject.java +++ b/seed/java-model/unknown/src/main/java/com/seed/unknownAsAny/model/unknown/MyObject.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.unknownAsAny.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = MyObject.Builder.class) @@ -51,7 +50,7 @@ public static UnknownStage builder() { } public interface UnknownStage { - _FinalStage unknown(@NotNull Object unknown); + _FinalStage unknown(Object unknown); Builder from(MyObject other); } @@ -74,7 +73,7 @@ public Builder from(MyObject other) { @java.lang.Override @JsonSetter("unknown") - public _FinalStage unknown(@NotNull Object unknown) { + public _FinalStage unknown(Object unknown) { this.unknown = Objects.requireNonNull(unknown, "unknown must not be null"); return this; } diff --git a/seed/java-model/validation/src/main/java/com/seed/validation/model/Type.java b/seed/java-model/validation/src/main/java/com/seed/validation/model/Type.java index 9d9c3715fa9..9d8a937043b 100644 --- a/seed/java-model/validation/src/main/java/com/seed/validation/model/Type.java +++ b/seed/java-model/validation/src/main/java/com/seed/validation/model/Type.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.validation.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = Type.Builder.class) @@ -85,11 +84,11 @@ public interface EvenStage { } public interface NameStage { - ShapeStage name(@NotNull String name); + ShapeStage name(String name); } public interface ShapeStage { - _FinalStage shape(@NotNull Shape shape); + _FinalStage shape(Shape shape); } public interface _FinalStage { @@ -133,14 +132,14 @@ public NameStage even(int even) { @java.lang.Override @JsonSetter("name") - public ShapeStage name(@NotNull String name) { + public ShapeStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("shape") - public _FinalStage shape(@NotNull Shape shape) { + public _FinalStage shape(Shape shape) { this.shape = Objects.requireNonNull(shape, "shape must not be null"); return this; } diff --git a/seed/java-model/version-no-default/src/main/java/com/seed/version/model/user/User.java b/seed/java-model/version-no-default/src/main/java/com/seed/version/model/user/User.java index c0b4912603d..25e5594082a 100644 --- a/seed/java-model/version-no-default/src/main/java/com/seed/version/model/user/User.java +++ b/seed/java-model/version-no-default/src/main/java/com/seed/version/model/user/User.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.version.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = User.Builder.class) @@ -59,13 +58,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(@NotNull String id); + NameStage id(String id); Builder from(User other); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(User other) { @java.lang.Override @JsonSetter("id") - public NameStage id(@NotNull String id) { + public NameStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/seed/java-model/version/src/main/java/com/seed/version/model/user/User.java b/seed/java-model/version/src/main/java/com/seed/version/model/user/User.java index c0b4912603d..25e5594082a 100644 --- a/seed/java-model/version/src/main/java/com/seed/version/model/user/User.java +++ b/seed/java-model/version/src/main/java/com/seed/version/model/user/User.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.seed.version.core.ObjectMappers; import java.util.Objects; -import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = User.Builder.class) @@ -59,13 +58,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(@NotNull String id); + NameStage id(String id); Builder from(User other); } public interface NameStage { - _FinalStage name(@NotNull String name); + _FinalStage name(String name); } public interface _FinalStage { @@ -89,14 +88,14 @@ public Builder from(User other) { @java.lang.Override @JsonSetter("id") - public NameStage id(@NotNull String id) { + public NameStage id(String id) { this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(@NotNull String name) { + public _FinalStage name(String name) { this.name = Objects.requireNonNull(name, "name must not be null"); return this; }