Issue 20804: Add java nullability annotations (#20806)

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.
This commit is contained in:
Nicolas Vervelle
2025-03-25 16:01:17 +01:00
committed by GitHub
parent d81b5a37d1
commit 8ca3543436
228 changed files with 4520 additions and 4421 deletions

View File

@@ -48,7 +48,7 @@ public class AnotherFakeApi extends BaseApi {
* @return Client
* @throws ApiException if fails to make API call
*/
public Client call123testSpecialTags(Client client) throws ApiException {
public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException {
return this.call123testSpecialTags(client, Collections.emptyMap());
}
@@ -61,7 +61,7 @@ public class AnotherFakeApi extends BaseApi {
* @return Client
* @throws ApiException if fails to make API call
*/
public Client call123testSpecialTags(Client client, Map<String, String> additionalHeaders) throws ApiException {
public Client call123testSpecialTags(@javax.annotation.Nonnull Client client, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = client;
// verify the required parameter 'client' is set

View File

@@ -197,7 +197,7 @@ public class FakeApi extends BaseApi {
* @param header1 header parameter (optional)
* @throws ApiException if fails to make API call
*/
public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws ApiException {
public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws ApiException {
this.fakeHttpSignatureTest(pet, query1, header1, Collections.emptyMap());
}
@@ -211,7 +211,7 @@ public class FakeApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void fakeHttpSignatureTest(Pet pet, String query1, String header1, Map<String, String> additionalHeaders) throws ApiException {
public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = pet;
// verify the required parameter 'pet' is set
@@ -274,7 +274,7 @@ public class FakeApi extends BaseApi {
* @return Boolean
* @throws ApiException if fails to make API call
*/
public Boolean fakeOuterBooleanSerialize(Boolean body) throws ApiException {
public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException {
return this.fakeOuterBooleanSerialize(body, Collections.emptyMap());
}
@@ -287,7 +287,7 @@ public class FakeApi extends BaseApi {
* @return Boolean
* @throws ApiException if fails to make API call
*/
public Boolean fakeOuterBooleanSerialize(Boolean body, Map<String, String> additionalHeaders) throws ApiException {
public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
@@ -343,7 +343,7 @@ public class FakeApi extends BaseApi {
* @return OuterComposite
* @throws ApiException if fails to make API call
*/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException {
return this.fakeOuterCompositeSerialize(outerComposite, Collections.emptyMap());
}
@@ -356,7 +356,7 @@ public class FakeApi extends BaseApi {
* @return OuterComposite
* @throws ApiException if fails to make API call
*/
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite, Map<String, String> additionalHeaders) throws ApiException {
public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = outerComposite;
// create path and map variables
@@ -412,7 +412,7 @@ public class FakeApi extends BaseApi {
* @return BigDecimal
* @throws ApiException if fails to make API call
*/
public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException {
public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException {
return this.fakeOuterNumberSerialize(body, Collections.emptyMap());
}
@@ -425,7 +425,7 @@ public class FakeApi extends BaseApi {
* @return BigDecimal
* @throws ApiException if fails to make API call
*/
public BigDecimal fakeOuterNumberSerialize(BigDecimal body, Map<String, String> additionalHeaders) throws ApiException {
public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
@@ -481,7 +481,7 @@ public class FakeApi extends BaseApi {
* @return String
* @throws ApiException if fails to make API call
*/
public String fakeOuterStringSerialize(String body) throws ApiException {
public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException {
return this.fakeOuterStringSerialize(body, Collections.emptyMap());
}
@@ -494,7 +494,7 @@ public class FakeApi extends BaseApi {
* @return String
* @throws ApiException if fails to make API call
*/
public String fakeOuterStringSerialize(String body, Map<String, String> additionalHeaders) throws ApiException {
public String fakeOuterStringSerialize(@javax.annotation.Nullable String body, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = body;
// create path and map variables
@@ -550,7 +550,7 @@ public class FakeApi extends BaseApi {
* @return OuterObjectWithEnumProperty
* @throws ApiException if fails to make API call
*/
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException {
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException {
return this.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty, Collections.emptyMap());
}
@@ -563,7 +563,7 @@ public class FakeApi extends BaseApi {
* @return OuterObjectWithEnumProperty
* @throws ApiException if fails to make API call
*/
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty, Map<String, String> additionalHeaders) throws ApiException {
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = outerObjectWithEnumProperty;
// verify the required parameter 'outerObjectWithEnumProperty' is set
@@ -623,7 +623,7 @@ public class FakeApi extends BaseApi {
* @param requestBody request body (required)
* @throws ApiException if fails to make API call
*/
public void testAdditionalPropertiesReference(Map<String, Object> requestBody) throws ApiException {
public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map<String, Object> requestBody) throws ApiException {
this.testAdditionalPropertiesReference(requestBody, Collections.emptyMap());
}
@@ -635,7 +635,7 @@ public class FakeApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testAdditionalPropertiesReference(Map<String, Object> requestBody, Map<String, String> additionalHeaders) throws ApiException {
public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map<String, Object> requestBody, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = requestBody;
// verify the required parameter 'requestBody' is set
@@ -694,7 +694,7 @@ public class FakeApi extends BaseApi {
* @param body image to upload (required)
* @throws ApiException if fails to make API call
*/
public void testBodyWithBinary(File body) throws ApiException {
public void testBodyWithBinary(@javax.annotation.Nullable File body) throws ApiException {
this.testBodyWithBinary(body, Collections.emptyMap());
}
@@ -706,7 +706,7 @@ public class FakeApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testBodyWithBinary(File body, Map<String, String> additionalHeaders) throws ApiException {
public void testBodyWithBinary(@javax.annotation.Nullable File body, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
@@ -765,7 +765,7 @@ public class FakeApi extends BaseApi {
* @param fileSchemaTestClass (required)
* @throws ApiException if fails to make API call
*/
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException {
this.testBodyWithFileSchema(fileSchemaTestClass, Collections.emptyMap());
}
@@ -777,7 +777,7 @@ public class FakeApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Map<String, String> additionalHeaders) throws ApiException {
public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = fileSchemaTestClass;
// verify the required parameter 'fileSchemaTestClass' is set
@@ -837,7 +837,7 @@ public class FakeApi extends BaseApi {
* @param user (required)
* @throws ApiException if fails to make API call
*/
public void testBodyWithQueryParams(String query, User user) throws ApiException {
public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException {
this.testBodyWithQueryParams(query, user, Collections.emptyMap());
}
@@ -850,7 +850,7 @@ public class FakeApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testBodyWithQueryParams(String query, User user, Map<String, String> additionalHeaders) throws ApiException {
public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = user;
// verify the required parameter 'query' is set
@@ -916,7 +916,7 @@ public class FakeApi extends BaseApi {
* @return Client
* @throws ApiException if fails to make API call
*/
public Client testClientModel(Client client) throws ApiException {
public Client testClientModel(@javax.annotation.Nonnull Client client) throws ApiException {
return this.testClientModel(client, Collections.emptyMap());
}
@@ -929,7 +929,7 @@ public class FakeApi extends BaseApi {
* @return Client
* @throws ApiException if fails to make API call
*/
public Client testClientModel(Client client, Map<String, String> additionalHeaders) throws ApiException {
public Client testClientModel(@javax.annotation.Nonnull Client client, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = client;
// verify the required parameter 'client' is set
@@ -1002,7 +1002,7 @@ public class FakeApi extends BaseApi {
* @param paramCallback None (optional)
* @throws ApiException if fails to make API call
*/
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
public void testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws ApiException {
this.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback, Collections.emptyMap());
}
@@ -1027,7 +1027,7 @@ public class FakeApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback, Map<String, String> additionalHeaders) throws ApiException {
public void testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'number' is set
@@ -1137,7 +1137,7 @@ if (paramCallback != null)
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @throws ApiException if fails to make API call
*/
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws ApiException {
public void testEnumParameters(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<EnumClass> enumQueryModelArray, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException {
this.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, Collections.emptyMap());
}
@@ -1157,7 +1157,7 @@ if (paramCallback != null)
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString, Map<String, String> additionalHeaders) throws ApiException {
public void testEnumParameters(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<EnumClass> enumQueryModelArray, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
@@ -1229,7 +1229,7 @@ if (enumFormString != null)
* @param int64Group Integer in group parameters (optional)
* @throws ApiException if fails to make API call
*/
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
public void testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws ApiException {
this.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, Collections.emptyMap());
}
@@ -1246,7 +1246,7 @@ if (enumFormString != null)
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group, Map<String, String> additionalHeaders) throws ApiException {
public void testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'requiredStringGroup' is set
@@ -1323,7 +1323,7 @@ if (booleanGroup != null)
* @param requestBody request body (required)
* @throws ApiException if fails to make API call
*/
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
this.testInlineAdditionalProperties(requestBody, Collections.emptyMap());
}
@@ -1335,7 +1335,7 @@ if (booleanGroup != null)
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testInlineAdditionalProperties(Map<String, String> requestBody, Map<String, String> additionalHeaders) throws ApiException {
public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map<String, String> requestBody, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = requestBody;
// verify the required parameter 'requestBody' is set
@@ -1394,7 +1394,7 @@ if (booleanGroup != null)
* @param testInlineFreeformAdditionalPropertiesRequest request body (required)
* @throws ApiException if fails to make API call
*/
public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
this.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest, Collections.emptyMap());
}
@@ -1406,7 +1406,7 @@ if (booleanGroup != null)
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, Map<String, String> additionalHeaders) throws ApiException {
public void testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = testInlineFreeformAdditionalPropertiesRequest;
// verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set
@@ -1466,7 +1466,7 @@ if (booleanGroup != null)
* @param param2 field2 (required)
* @throws ApiException if fails to make API call
*/
public void testJsonFormData(String param, String param2) throws ApiException {
public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException {
this.testJsonFormData(param, param2, Collections.emptyMap());
}
@@ -1479,7 +1479,7 @@ if (booleanGroup != null)
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testJsonFormData(String param, String param2, Map<String, String> additionalHeaders) throws ApiException {
public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'param' is set
@@ -1547,7 +1547,7 @@ if (param2 != null)
* @param childWithNullable request body (required)
* @throws ApiException if fails to make API call
*/
public void testNullable(ChildWithNullable childWithNullable) throws ApiException {
public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws ApiException {
this.testNullable(childWithNullable, Collections.emptyMap());
}
@@ -1559,7 +1559,7 @@ if (param2 != null)
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testNullable(ChildWithNullable childWithNullable, Map<String, String> additionalHeaders) throws ApiException {
public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = childWithNullable;
// verify the required parameter 'childWithNullable' is set
@@ -1624,7 +1624,7 @@ if (param2 != null)
* @param language (optional)
* @throws ApiException if fails to make API call
*/
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws ApiException {
public void testQueryParameterCollectionFormat(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map<String, String> language) throws ApiException {
this.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language, Collections.emptyMap());
}
@@ -1642,7 +1642,7 @@ if (param2 != null)
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language, Map<String, String> additionalHeaders) throws ApiException {
public void testQueryParameterCollectionFormat(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map<String, String> language, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'pipe' is set
@@ -1733,7 +1733,7 @@ if (param2 != null)
* @param requestBody request body (required)
* @throws ApiException if fails to make API call
*/
public void testStringMapReference(Map<String, String> requestBody) throws ApiException {
public void testStringMapReference(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
this.testStringMapReference(requestBody, Collections.emptyMap());
}
@@ -1745,7 +1745,7 @@ if (param2 != null)
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void testStringMapReference(Map<String, String> requestBody, Map<String, String> additionalHeaders) throws ApiException {
public void testStringMapReference(@javax.annotation.Nonnull Map<String, String> requestBody, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = requestBody;
// verify the required parameter 'requestBody' is set

View File

@@ -48,7 +48,7 @@ public class FakeClassnameTags123Api extends BaseApi {
* @return Client
* @throws ApiException if fails to make API call
*/
public Client testClassname(Client client) throws ApiException {
public Client testClassname(@javax.annotation.Nonnull Client client) throws ApiException {
return this.testClassname(client, Collections.emptyMap());
}
@@ -61,7 +61,7 @@ public class FakeClassnameTags123Api extends BaseApi {
* @return Client
* @throws ApiException if fails to make API call
*/
public Client testClassname(Client client, Map<String, String> additionalHeaders) throws ApiException {
public Client testClassname(@javax.annotation.Nonnull Client client, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = client;
// verify the required parameter 'client' is set

View File

@@ -50,7 +50,7 @@ public class PetApi extends BaseApi {
* @param pet Pet object that needs to be added to the store (required)
* @throws ApiException if fails to make API call
*/
public void addPet(Pet pet) throws ApiException {
public void addPet(@javax.annotation.Nonnull Pet pet) throws ApiException {
this.addPet(pet, Collections.emptyMap());
}
@@ -62,7 +62,7 @@ public class PetApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void addPet(Pet pet, Map<String, String> additionalHeaders) throws ApiException {
public void addPet(@javax.annotation.Nonnull Pet pet, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = pet;
// verify the required parameter 'pet' is set
@@ -122,7 +122,7 @@ public class PetApi extends BaseApi {
* @param apiKey (optional)
* @throws ApiException if fails to make API call
*/
public void deletePet(Long petId, String apiKey) throws ApiException {
public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException {
this.deletePet(petId, apiKey, Collections.emptyMap());
}
@@ -135,7 +135,7 @@ public class PetApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void deletePet(Long petId, String apiKey, Map<String, String> additionalHeaders) throws ApiException {
public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
@@ -198,7 +198,7 @@ public class PetApi extends BaseApi {
* @return List&lt;Pet&gt;
* @throws ApiException if fails to make API call
*/
public List<Pet> findPetsByStatus(List<String> status) throws ApiException {
public List<Pet> findPetsByStatus(@javax.annotation.Nonnull List<String> status) throws ApiException {
return this.findPetsByStatus(status, Collections.emptyMap());
}
@@ -211,7 +211,7 @@ public class PetApi extends BaseApi {
* @return List&lt;Pet&gt;
* @throws ApiException if fails to make API call
*/
public List<Pet> findPetsByStatus(List<String> status, Map<String, String> additionalHeaders) throws ApiException {
public List<Pet> findPetsByStatus(@javax.annotation.Nonnull List<String> status, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'status' is set
@@ -275,7 +275,7 @@ public class PetApi extends BaseApi {
* @deprecated
*/
@Deprecated
public Set<Pet> findPetsByTags(Set<String> tags) throws ApiException {
public Set<Pet> findPetsByTags(@javax.annotation.Nonnull Set<String> tags) throws ApiException {
return this.findPetsByTags(tags, Collections.emptyMap());
}
@@ -290,7 +290,7 @@ public class PetApi extends BaseApi {
* @deprecated
*/
@Deprecated
public Set<Pet> findPetsByTags(Set<String> tags, Map<String, String> additionalHeaders) throws ApiException {
public Set<Pet> findPetsByTags(@javax.annotation.Nonnull Set<String> tags, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'tags' is set
@@ -352,7 +352,7 @@ public class PetApi extends BaseApi {
* @return Pet
* @throws ApiException if fails to make API call
*/
public Pet getPetById(Long petId) throws ApiException {
public Pet getPetById(@javax.annotation.Nonnull Long petId) throws ApiException {
return this.getPetById(petId, Collections.emptyMap());
}
@@ -365,7 +365,7 @@ public class PetApi extends BaseApi {
* @return Pet
* @throws ApiException if fails to make API call
*/
public Pet getPetById(Long petId, Map<String, String> additionalHeaders) throws ApiException {
public Pet getPetById(@javax.annotation.Nonnull Long petId, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
@@ -426,7 +426,7 @@ public class PetApi extends BaseApi {
* @param pet Pet object that needs to be added to the store (required)
* @throws ApiException if fails to make API call
*/
public void updatePet(Pet pet) throws ApiException {
public void updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException {
this.updatePet(pet, Collections.emptyMap());
}
@@ -438,7 +438,7 @@ public class PetApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void updatePet(Pet pet, Map<String, String> additionalHeaders) throws ApiException {
public void updatePet(@javax.annotation.Nonnull Pet pet, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = pet;
// verify the required parameter 'pet' is set
@@ -499,7 +499,7 @@ public class PetApi extends BaseApi {
* @param status Updated status of the pet (optional)
* @throws ApiException if fails to make API call
*/
public void updatePetWithForm(Long petId, String name, String status) throws ApiException {
public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException {
this.updatePetWithForm(petId, name, status, Collections.emptyMap());
}
@@ -513,7 +513,7 @@ public class PetApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void updatePetWithForm(Long petId, String name, String status, Map<String, String> additionalHeaders) throws ApiException {
public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
@@ -580,7 +580,7 @@ if (status != null)
* @return ModelApiResponse
* @throws ApiException if fails to make API call
*/
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException {
public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException {
return this.uploadFile(petId, additionalMetadata, _file, Collections.emptyMap());
}
@@ -595,7 +595,7 @@ if (status != null)
* @return ModelApiResponse
* @throws ApiException if fails to make API call
*/
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file, Map<String, String> additionalHeaders) throws ApiException {
public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'petId' is set
@@ -663,7 +663,7 @@ if (_file != null)
* @return ModelApiResponse
* @throws ApiException if fails to make API call
*/
public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException {
return this.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata, Collections.emptyMap());
}
@@ -678,7 +678,7 @@ if (_file != null)
* @return ModelApiResponse
* @throws ApiException if fails to make API call
*/
public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata, Map<String, String> additionalHeaders) throws ApiException {
public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'petId' is set

View File

@@ -47,7 +47,7 @@ public class StoreApi extends BaseApi {
* @param orderId ID of the order that needs to be deleted (required)
* @throws ApiException if fails to make API call
*/
public void deleteOrder(String orderId) throws ApiException {
public void deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException {
this.deleteOrder(orderId, Collections.emptyMap());
}
@@ -59,7 +59,7 @@ public class StoreApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void deleteOrder(String orderId, Map<String, String> additionalHeaders) throws ApiException {
public void deleteOrder(@javax.annotation.Nonnull String orderId, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
@@ -187,7 +187,7 @@ public class StoreApi extends BaseApi {
* @return Order
* @throws ApiException if fails to make API call
*/
public Order getOrderById(Long orderId) throws ApiException {
public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException {
return this.getOrderById(orderId, Collections.emptyMap());
}
@@ -200,7 +200,7 @@ public class StoreApi extends BaseApi {
* @return Order
* @throws ApiException if fails to make API call
*/
public Order getOrderById(Long orderId, Map<String, String> additionalHeaders) throws ApiException {
public Order getOrderById(@javax.annotation.Nonnull Long orderId, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'orderId' is set
@@ -262,7 +262,7 @@ public class StoreApi extends BaseApi {
* @return Order
* @throws ApiException if fails to make API call
*/
public Order placeOrder(Order order) throws ApiException {
public Order placeOrder(@javax.annotation.Nonnull Order order) throws ApiException {
return this.placeOrder(order, Collections.emptyMap());
}
@@ -275,7 +275,7 @@ public class StoreApi extends BaseApi {
* @return Order
* @throws ApiException if fails to make API call
*/
public Order placeOrder(Order order, Map<String, String> additionalHeaders) throws ApiException {
public Order placeOrder(@javax.annotation.Nonnull Order order, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = order;
// verify the required parameter 'order' is set

View File

@@ -48,7 +48,7 @@ public class UserApi extends BaseApi {
* @param user Created user object (required)
* @throws ApiException if fails to make API call
*/
public void createUser(User user) throws ApiException {
public void createUser(@javax.annotation.Nonnull User user) throws ApiException {
this.createUser(user, Collections.emptyMap());
}
@@ -60,7 +60,7 @@ public class UserApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void createUser(User user, Map<String, String> additionalHeaders) throws ApiException {
public void createUser(@javax.annotation.Nonnull User user, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = user;
// verify the required parameter 'user' is set
@@ -119,7 +119,7 @@ public class UserApi extends BaseApi {
* @param user List of user object (required)
* @throws ApiException if fails to make API call
*/
public void createUsersWithArrayInput(List<User> user) throws ApiException {
public void createUsersWithArrayInput(@javax.annotation.Nonnull List<User> user) throws ApiException {
this.createUsersWithArrayInput(user, Collections.emptyMap());
}
@@ -131,7 +131,7 @@ public class UserApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void createUsersWithArrayInput(List<User> user, Map<String, String> additionalHeaders) throws ApiException {
public void createUsersWithArrayInput(@javax.annotation.Nonnull List<User> user, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = user;
// verify the required parameter 'user' is set
@@ -190,7 +190,7 @@ public class UserApi extends BaseApi {
* @param user List of user object (required)
* @throws ApiException if fails to make API call
*/
public void createUsersWithListInput(List<User> user) throws ApiException {
public void createUsersWithListInput(@javax.annotation.Nonnull List<User> user) throws ApiException {
this.createUsersWithListInput(user, Collections.emptyMap());
}
@@ -202,7 +202,7 @@ public class UserApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void createUsersWithListInput(List<User> user, Map<String, String> additionalHeaders) throws ApiException {
public void createUsersWithListInput(@javax.annotation.Nonnull List<User> user, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = user;
// verify the required parameter 'user' is set
@@ -261,7 +261,7 @@ public class UserApi extends BaseApi {
* @param username The name that needs to be deleted (required)
* @throws ApiException if fails to make API call
*/
public void deleteUser(String username) throws ApiException {
public void deleteUser(@javax.annotation.Nonnull String username) throws ApiException {
this.deleteUser(username, Collections.emptyMap());
}
@@ -273,7 +273,7 @@ public class UserApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void deleteUser(String username, Map<String, String> additionalHeaders) throws ApiException {
public void deleteUser(@javax.annotation.Nonnull String username, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'username' is set
@@ -334,7 +334,7 @@ public class UserApi extends BaseApi {
* @return User
* @throws ApiException if fails to make API call
*/
public User getUserByName(String username) throws ApiException {
public User getUserByName(@javax.annotation.Nonnull String username) throws ApiException {
return this.getUserByName(username, Collections.emptyMap());
}
@@ -347,7 +347,7 @@ public class UserApi extends BaseApi {
* @return User
* @throws ApiException if fails to make API call
*/
public User getUserByName(String username, Map<String, String> additionalHeaders) throws ApiException {
public User getUserByName(@javax.annotation.Nonnull String username, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'username' is set
@@ -410,7 +410,7 @@ public class UserApi extends BaseApi {
* @return String
* @throws ApiException if fails to make API call
*/
public String loginUser(String username, String password) throws ApiException {
public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException {
return this.loginUser(username, password, Collections.emptyMap());
}
@@ -424,7 +424,7 @@ public class UserApi extends BaseApi {
* @return String
* @throws ApiException if fails to make API call
*/
public String loginUser(String username, String password, Map<String, String> additionalHeaders) throws ApiException {
public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'username' is set
@@ -556,7 +556,7 @@ public class UserApi extends BaseApi {
* @param user Updated user object (required)
* @throws ApiException if fails to make API call
*/
public void updateUser(String username, User user) throws ApiException {
public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException {
this.updateUser(username, user, Collections.emptyMap());
}
@@ -569,7 +569,7 @@ public class UserApi extends BaseApi {
* @param additionalHeaders additionalHeaders for this call
* @throws ApiException if fails to make API call
*/
public void updateUser(String username, User user, Map<String, String> additionalHeaders) throws ApiException {
public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user, Map<String, String> additionalHeaders) throws ApiException {
Object localVarPostBody = user;
// verify the required parameter 'username' is set