Skip to content

Commit ecd5d25

Browse files
authored
[Bug] [Java] Fix java compilation warnings in RFC3339JavaTimeModule and RFC3339InstantDeserializer (#21243)
* Fix java compilation warnings in RFC3339JavaTimeModule and RFC3339InstantDeserializer * Regen missing samples
1 parent 4cffd32 commit ecd5d25

File tree

106 files changed

+106
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+106
-53
lines changed

modules/openapi-generator/src/main/resources/Java/RFC3339InstantDeserializer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer;
1919

2020
{{>generatedAnnotation}}
2121
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
22-
22+
private static final long serialVersionUID = 1L;
2323
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
2424
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
2525
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

modules/openapi-generator/src/main/resources/Java/RFC3339JavaTimeModule.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.fasterxml.jackson.databind.module.SimpleModule;
99

1010
{{>generatedAnnotation}}
1111
public class RFC3339JavaTimeModule extends SimpleModule {
12+
private static final long serialVersionUID = 1L;
1213
1314
public RFC3339JavaTimeModule() {
1415
super("RFC3339JavaTimeModule");

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

0 commit comments

Comments
 (0)