Skip to content
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
59c67f2
Merge pull request #4 from OpenAPITools/master
jpfinne May 11, 2026
784da69
Merge branch 'OpenAPITools:master' into master
jpfinne May 12, 2026
9ee6075
Merge branch 'OpenAPITools:master' into master
jpfinne May 14, 2026
91ce7ba
Merge branch 'OpenAPITools:master' into master
jpfinne May 15, 2026
0808d0e
Merge branch 'OpenAPITools:master' into master
jpfinne May 17, 2026
46d9c9c
Merge branch 'OpenAPITools:master' into master
jpfinne May 18, 2026
7b6cf90
Merge branch 'OpenAPITools:master' into master
jpfinne May 30, 2026
b50a337
Merge branch 'OpenAPITools:master' into master
jpfinne Jun 1, 2026
ae1bff7
Merge branch 'OpenAPITools:master' into master
jpfinne Jun 2, 2026
5229d8d
Merge branch 'OpenAPITools:master' into master
jpfinne Jun 3, 2026
cdc74eb
Merge branch 'OpenAPITools:master' into master
jpfinne Jun 13, 2026
df30bd2
Merge branch 'OpenAPITools:master' into master
jpfinne Jul 4, 2026
246b21d
Merge branch 'OpenAPITools:master' into master
jpfinne Jul 8, 2026
8e39563
Merge branch 'OpenAPITools:master' into master
jpfinne Aug 1, 2026
deec130
Merge branch 'OpenAPITools:master' into master
jpfinne Aug 4, 2026
e1cf666
add jspecify @Nullable annotation to builder and toIndentedString for…
jpfinne Aug 4, 2026
236338d
include more use cases in jspecify.yaml
jpfinne Aug 4, 2026
356595c
include more use cases in jspecify.yaml
jpfinne Aug 4, 2026
f49accb
Regenerate test samples
jpfinne Aug 8, 2026
30a40a5
Merge remote-tracking branch 'refs/remotes/upstream/master' into feat…
jpfinne Aug 8, 2026
2740a6e
Regenerate test samples
jpfinne Aug 8, 2026
d64ea09
Merge remote-tracking branch 'upstream/master' into feature/jspecify_…
jpfinne Aug 8, 2026
bb0e7d8
Fix extra space in webclient single_request_parameter for toIndentedS…
jpfinne Aug 8, 2026
d381a73
Invalid sha for JSONTest.java !!!
jpfinne Aug 8, 2026
1ad3f1e
Support space at the end of the @Nullable annotation to avoid handlin…
jpfinne Aug 8, 2026
2ea64df
generate all arg constructor on restTemplate and webclient
jpfinne Aug 8, 2026
a46a2b3
Remove @Nullable on private toIndentedString
jpfinne Aug 8, 2026
7bd1863
Fix unit test
jpfinne Aug 8, 2026
64ce445
Fix unit test
jpfinne Aug 8, 2026
ecf0f73
Add regenerated samples with tags
jpfinne Aug 8, 2026
4cbbfad
Add regenerated samples with tags
jpfinne Aug 8, 2026
9f6d68d
Force rebuild
jpfinne Aug 9, 2026
e031b85
Force rebuild
jpfinne Aug 9, 2026
b75d455
Handling of resttemplate api Nullable arguments
jpfinne Aug 9, 2026
5ce5282
Merge remote-tracking branch 'upstream/master' into feature/jspecify_…
jpfinne Aug 9, 2026
ce877e4
Handling of resttemplate api Nullable arguments
jpfinne Aug 9, 2026
f0501ee
Rollback resttemplate api: not for this PR
jpfinne Aug 9, 2026
4d3cbf7
Add @Nullable on single_request_parameter
jpfinne Aug 9, 2026
282a4f7
Add @Nullable on useAbstractionForFiles
jpfinne Aug 10, 2026
a3e671f
Fix unittest
jpfinne Aug 10, 2026
7aba350
Merge remote-tracking branch 'upstream/master' into feature/jspecify_…
jpfinne Aug 10, 2026
3656352
Merge master and fix use useAbstractionForFiles=true for restclient a…
jpfinne Aug 10, 2026
bfabfc7
fix restclient api_test
jpfinne Aug 10, 2026
df96fba
Add sample for array of file
jpfinne Aug 10, 2026
8df500c
Fix unit tests
jpfinne Aug 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/samples-java-client-jdk17.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- samples/client/petstore/java/apache-httpclient-jackson3/**
- samples/client/petstore/java/native-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable/**
- samples/client/others/java/webclient-sealedInterface/**
- samples/client/others/java/webclient-sealedInterface_3_1/**
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
Expand All @@ -30,6 +31,7 @@ on:
- samples/client/petstore/java/apache-httpclient-jackson3/**
- samples/client/petstore/java/native-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable/**
- samples/client/others/java/webclient-sealedInterface/**
- samples/client/others/java/webclient-sealedInterface_3_1/**
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
Expand Down Expand Up @@ -57,6 +59,7 @@ jobs:
- samples/client/petstore/java/restclient-springBoot4-jackson2
- samples/client/petstore/java/restclient-springBoot4-jackson3
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable
- samples/client/petstore/java/native-jackson3-jspecify
- samples/client/petstore/java/restclient-swagger2
- samples/client/petstore/java/restclient-useSingleRequestParameter
Expand Down
4 changes: 2 additions & 2 deletions bin/configs/java-native-jackson3-jspecify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ validateSpec: false
additionalProperties:
artifactId: petstore-native-jackson3
hideGenerationTimestamp: "true"
generateBuilders: true
useReflectionEqualsHashCode: "true"
useJackson3: "true"
openApiNullable: "false"
useJspecify: true
generateBuilders: true
typeMappings:
OffsetDateTime: java.time.Instant
BigDecimal: java.math.BigDecimal
BigDecimal: java.math.BigDecimal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
generatorName: java
outputDir: samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable
library: restclient
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/jspecify.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
validateSpec: false
additionalProperties:
artifactId: petstore-restclient
hideGenerationTimestamp: "true"
containerDefaultToNull: "true"
useSpringBoot4: true
useJackson3: true
openApiNullable: true
useJspecify: true
generateBuilders: true
generateConstructorWithAllArgs: true
typeMappings:
OffsetDateTime: java.time.Instant
BigDecimal: java.math.BigDecimal
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ additionalProperties:
useJackson3: true
openApiNullable: false
useJspecify: true
generateBuilders: true
generateConstructorWithAllArgs: true
typeMappings:
OffsetDateTime: java.time.Instant
BigDecimal: java.math.BigDecimal
1 change: 0 additions & 1 deletion bin/configs/java-resttemplate-springBoot4-jackson2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ additionalProperties:
containerDefaultToNull: "true"
useJakartaEe: true
useSpringBoot4: true

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ additionalProperties:
useJackson3: true
openApiNullable: false
useJspecify: true
generateBuilders: true
generateConstructorWithAllArgs: true
typeMappings:
OffsetDateTime: java.time.Instant
BigDecimal: java.math.BigDecimal
2 changes: 2 additions & 0 deletions bin/configs/java-webclient-springBoot4-jackson3-jspecify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ additionalProperties:
useJackson3: true
openApiNullable: false
useJspecify: true
generateBuilders: true
generateConstructorWithAllArgs: true
typeMappings:
OffsetDateTime: java.time.Instant
BigDecimal: java.math.BigDecimal
2 changes: 1 addition & 1 deletion bin/utils/test_file_list.yaml
Comment thread
jpfinne marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java"
sha256: 325fdd5d7e2c97790c0fb44f712ab7b2ba022d7e1a5b0056f47b07f342682b6d
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java"
sha256: 074f090e5df50448f3309af83ce30690cd50c83d3675e555de7d359f42d26020
sha256: 08b089934586d0b1564e9e5940c3dc4f3ef0b79d191ba91d36ee2f07356eab38
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/PetApiTest.java"
sha256: 8b1b8f2a2ad00ccb090873a94a5f73e328b98317d2ec715f53bd7a1accb2a023
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2916,9 +2916,11 @@ public void execute(Template.Fragment fragment, Writer writer) throws IOExceptio
keptNullable = null;
String value = fragment.execute();
if (useJspecify) {
if (value.startsWith(nullableAnnotation)) {
// extract @Nullable annotation (starting with @ and ending with space)
String patternToFind = nullableAnnotation + " ";
if (value.startsWith(patternToFind)) {
keptNullable = value;
int idx = nullableAnnotation.length();
int idx = patternToFind.length();
// trim left
while (idx < value.length() && value.charAt(idx) == ' ') {
idx ++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par
}

{{#vars}}
public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) {
public {{classname}}.Builder {{name}}({{>nullableArgument_builder}} {{name}}) {
{{#vendorExtensions.x-is-jackson-optional-nullable}}
this.instance.{{name}} = JsonNullable.<{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}>of({{name}});
{{/vendorExtensions.x-is-jackson-optional-nullable}}
Expand All @@ -32,7 +32,7 @@ public static class Builder {{#parentModel}}extends {{classname}}.Builder {{/par
{{/vars}}

{{#parentVars}}
public {{classname}}.Builder {{name}}({{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}} {{name}}) { // inherited: {{isInherited}}
public {{classname}}.Builder {{name}}({{>nullableArgument_builder}} {{name}}) { // inherited: {{isInherited}}
super.{{name}}({{name}});
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) {
private{{#jsonb}} static{{/jsonb}} String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
{{#supportUrlQuery}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Resolved
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
{{#supportUrlQuery}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public {{>sealed}}class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#v
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) {
private{{#jsonb}} static{{/jsonb}} String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
{{#supportUrlQuery}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) {
private{{#jsonb}} static{{/jsonb}} String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Resolved
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) {
private{{#jsonb}} static{{/jsonb}} String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
{{#supportUrlQuery}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public {{>sealed}}class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#v
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) {
private{{#jsonb}} static{{/jsonb}} String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
{{#supportUrlQuery}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) {
private{{#jsonb}} static{{/jsonb}} String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Resolved
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{#useJspecify}}{{#lambda.jSpecifyNullable}}{{^required}}@{{javaxPackage}}.annotation.Nullable {{/required}}{{/lambda.jSpecifyNullable}}{{#lambda.jSpecifyDatatype}}{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}{{/lambda.jSpecifyDatatype}}{{/useJspecify}}{{^useJspecify}}{{#removeAnnotations}}{{{datatypeWithEnum}}}{{/removeAnnotations}}{{/useJspecify}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{#lambda.jSpecifyNullable}}{{#required}}{{#isNullable}}@{{javaxPackage}}.annotation.Nullable{{/isNullable}}{{^useJspecify}}{{^isNullable}}@{{javaxPackage}}.annotation.Nonnull{{/isNullable}}{{/useJspecify}}{{/required}}{{^required}}@{{javaxPackage}}.annotation.Nullable{{/required}}{{/lambda.jSpecifyNullable}}
{{^useJspecify}}{{#required}}{{#isNullable}}@{{javaxPackage}}.annotation.Nullable{{/isNullable}}{{^isNullable}}@{{javaxPackage}}.annotation.Nonnull{{/isNullable}}{{/required}}{{^required}}@{{javaxPackage}}.annotation.Nullable{{/required}}{{/useJspecify}}{{#useJspecify}}{{#lambda.jSpecifyNullable}}{{^required}}@{{javaxPackage}}.annotation.Nullable {{/required}}{{/lambda.jSpecifyNullable}}{{/useJspecify}}
Comment thread
jpfinne marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private{{#jsonb}} static{{/jsonb}} String toIndentedString(Object o) {
private{{#jsonb}} static{{/jsonb}} String toIndentedString({{#useJspecify}}@Nullable {{/useJspecify}}Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
{{#supportUrlQuery}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4687,7 +4687,8 @@ public void testJspecify(String library, boolean useSpringBoot4, boolean hasJspe
"containerDefaultToNull", true,
USE_SPRING_BOOT4, useSpringBoot4,
JavaClientCodegen.OPENAPI_NULLABLE, false,
GENERATE_CONSTRUCTOR_WITH_ALL_ARGS, true
GENERATE_CONSTRUCTOR_WITH_ALL_ARGS, true,
GENERATE_BUILDERS, true
Comment thread
jpfinne marked this conversation as resolved.
Resolved
),
codegenConfigurator ->
codegenConfigurator
Expand Down Expand Up @@ -4716,13 +4717,14 @@ public void testJspecify(String library, boolean useSpringBoot4, boolean hasJspe
"import org.jspecify.annotations.Nullable;",
"private java.time.@Nullable Instant dt;",
"setDt(java.time.@Nullable Instant dt)",
"Foo dt(java.time.@Nullable Instant dt)",
"dt(java.time.@Nullable Instant dt)",
"setBinary(@Nullable File binary)",
"public @Nullable File getBinary()",
"@Nullable List<java.time.Instant> getListOfDt()",
"private java.time.@Nullable Instant nullableDt;",
"private @Nullable List<java.time.Instant> listOfDt;",
"setListOfDt(@Nullable List<java.time.Instant> listOfDt)");
"setListOfDt(@Nullable List<java.time.Instant> listOfDt)",
"String toIndentedString(@Nullable Object o)");
if (!NATIVE.equals(library)) { // native library does not generate all arg constructors
JavaFileAssert.assertThat(files.get("Foo.java"))
.fileContains(
Expand Down Expand Up @@ -4750,7 +4752,8 @@ public void testJspecify_openapiNullable(String library, boolean useSpringBoot4,
"containerDefaultToNull", true,
USE_SPRING_BOOT4, useSpringBoot4,
JavaClientCodegen.OPENAPI_NULLABLE, true,
GENERATE_CONSTRUCTOR_WITH_ALL_ARGS, true
GENERATE_CONSTRUCTOR_WITH_ALL_ARGS, true,
GENERATE_BUILDERS, true
),
codegenConfigurator ->
codegenConfigurator
Expand Down Expand Up @@ -4785,7 +4788,8 @@ public void testJspecify_openapiNullable(String library, boolean useSpringBoot4,
"@Nullable List<java.time.Instant> getListOfDt()",
"setListOfDt(@Nullable List<java.time.Instant> listOfDt)",
"JsonNullable<java.time.Instant> nullableDt = JsonNullable.<java.time.Instant>undefined()",
"private JsonNullable<File> nullableBinary = JsonNullable.<File>undefined();");
"private JsonNullable<File> nullableBinary = JsonNullable.<File>undefined();",
"String toIndentedString(@Nullable Object o)");
if (!NATIVE.equals(library)) { // native library does not generate all arg constructors
JavaFileAssert.assertThat(files.get("Foo.java"))
.fileContains(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public String toString() {
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
private String toIndentedString(@Nullable Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}

Expand Down Expand Up @@ -619,55 +619,55 @@ protected Builder(Foo instance) {
this.instance = instance;
}

public Foo.Builder dt(java.time.Instant dt) {
public Foo.Builder dt(java.time.@Nullable Instant dt) {
this.instance.dt = dt;
return this;
}
public Foo.Builder nullableDt(java.time.Instant nullableDt) {
public Foo.Builder nullableDt(java.time.@Nullable Instant nullableDt) {
this.instance.nullableDt = nullableDt;
return this;
}
public Foo.Builder binary(File binary) {
public Foo.Builder binary(@Nullable File binary) {
this.instance.binary = binary;
return this;
}
public Foo.Builder nullableBinary(File nullableBinary) {
public Foo.Builder nullableBinary(@Nullable File nullableBinary) {
this.instance.nullableBinary = nullableBinary;
return this;
}
public Foo.Builder listOfDt(List<java.time.Instant> listOfDt) {
public Foo.Builder listOfDt(@Nullable List<java.time.Instant> listOfDt) {
this.instance.listOfDt = listOfDt;
return this;
}
public Foo.Builder listMinIntems(List<java.time.Instant> listMinIntems) {
public Foo.Builder listMinIntems(@Nullable List<java.time.Instant> listMinIntems) {
this.instance.listMinIntems = listMinIntems;
return this;
}
public Foo.Builder nullableListMinIntems(List<java.time.Instant> nullableListMinIntems) {
public Foo.Builder nullableListMinIntems(@Nullable List<java.time.Instant> nullableListMinIntems) {
this.instance.nullableListMinIntems = nullableListMinIntems;
return this;
}
public Foo.Builder requiredDt(java.time.Instant requiredDt) {
this.instance.requiredDt = requiredDt;
return this;
}
public Foo.Builder number(java.math.BigDecimal number) {
public Foo.Builder number(java.math.@Nullable BigDecimal number) {
this.instance.number = number;
return this;
}
public Foo.Builder nullableNumber(java.math.BigDecimal nullableNumber) {
public Foo.Builder nullableNumber(java.math.@Nullable BigDecimal nullableNumber) {
this.instance.nullableNumber = nullableNumber;
return this;
}
public Foo.Builder color(String color) {
public Foo.Builder color(@Nullable String color) {
this.instance.color = color;
return this;
}
public Foo.Builder requiredColor(String requiredColor) {
this.instance.requiredColor = requiredColor;
return this;
}
public Foo.Builder nullableColor(String nullableColor) {
public Foo.Builder nullableColor(@Nullable String nullableColor) {
this.instance.nullableColor = nullableColor;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
#
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)

name: Java CI with Maven

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
build:
name: Build jspecify
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17, 21 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --no-transfer-progress --file pom.xml
Loading
Loading