FINERACT-1593: Bugfixes for Client Address creation
This commit is contained in:
committed by
Arnold Gálovics
parent
df5718ad04
commit
9d212ba471
@@ -91,7 +91,7 @@ licenseFormatMain.dependsOn buildTypescriptAngularSdk
|
||||
compileJava.dependsOn licenseFormatMain
|
||||
|
||||
// TODO: @vidakovic we could provide even more client libs in different languages (Go, Ruby, Swift etc.)
|
||||
compileJava.dependsOn buildJavaSdk, spotlessJavaApply, buildTypescriptAngularSdk, spotlessMiscApply
|
||||
compileJava.dependsOn buildJavaSdk, buildTypescriptAngularSdk, spotlessMiscApply
|
||||
|
||||
java {
|
||||
// keep this at Java 8, not 17; see https://issues.apache.org/jira/browse/FINERACT-1214
|
||||
|
||||
@@ -43,9 +43,8 @@ import retrofit2.converter.gson.GsonConverterFactory;
|
||||
|
||||
// This class was originally generated by OpenAPI Generator (https://openapi-generator.tech),
|
||||
// but then had to be manually edited by Michael Vorburger.ch to fix https://issues.apache.org/jira/browse/FINERACT-1220.
|
||||
// It is intentionally NOT public, as it's considered an "implementation detail".
|
||||
// The original JSON class is deleted during the build (see FINERACT-1231).
|
||||
class JSON {
|
||||
public class JSON {
|
||||
|
||||
private final Gson gson;
|
||||
private final DateTypeAdapter dateTypeAdapter = new DateTypeAdapter();
|
||||
@@ -53,14 +52,14 @@ class JSON {
|
||||
private final OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter();
|
||||
private final LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter();
|
||||
|
||||
JSON() {
|
||||
public JSON() {
|
||||
gson = new GsonFireBuilder().createGsonBuilder().registerTypeAdapter(Date.class, dateTypeAdapter)
|
||||
.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter)
|
||||
.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter)
|
||||
.registerTypeAdapter(LocalDate.class, localDateTypeAdapter).create();
|
||||
}
|
||||
|
||||
Gson getGson() {
|
||||
public Gson getGson() {
|
||||
return gson;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user