[BUG] [Java] Remove deprecation and serial warnings in ApiException.java and JSON.java (#17716)

* Add serialVersionUID to Java apiException.mustache templates

* Use 'enable()' and 'disable()' methods to handle object mapper features in JSON.mustache for the "native" Java generator instead of the deprecated 'configure()'

* Update samples
This commit is contained in:
Jesenko Mehmedbasic
2024-01-27 03:42:27 +01:00
committed by GitHub
parent 0a0428b89c
commit a092bbd83b
41 changed files with 87 additions and 15 deletions

View File

@@ -18,6 +18,8 @@ import java.util.List;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
private String responseBody = null;