Skip to content

Commit 1088870

Browse files
authored
[webclient] Optimize Imports (#412)
Removes the redundant imports `com.fasterxml.jackson.annotation.JsonCreator` and `com.fasterxml.jackson.annotation.JsonValue` from generated `record` classes.
1 parent 0c0d7ba commit 1088870

File tree

335 files changed

+337
-579
lines changed

Some content is hidden

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

335 files changed

+337
-579
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors:
55
given-names: "Christopher"
66
orcid: "https://orcid.org/0009-0002-1005-3942"
77
title: "OpenAPI to Java Records Mustache Templates"
8-
version: 2.9.2
8+
version: 2.9.3
99
date-released: 2025-01-06
1010
url: "https://github.com/Chrimle/openapi-to-java-records-mustache-templates"

README.md

Lines changed: 1 addition & 1 deletion

docs/index.md

Lines changed: 1 addition & 1 deletion

mustache-templates/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.github.chrimle</groupId>
88
<artifactId>openapi-to-java-records-mustache-templates-parent</artifactId>
9-
<version>2.9.2</version>
9+
<version>2.9.3</version>
1010
</parent>
1111

1212
<artifactId>openapi-to-java-records-mustache-templates</artifactId>

mustache-templates/src/main/resources/templates/pojo.mustache

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

3131
}}{{!
3232
Imports needed for 'okhttp-gson'
33-
}}{{#jackson}}import com.fasterxml.jackson.annotation.JsonCreator;{{!
34-
}}{{#vars}}{{#isEnum}}{{#-first}}
35-
import com.fasterxml.jackson.annotation.JsonValue;{{/-first}}{{/isEnum}}{{/vars}}
36-
37-
{{/jackson}}{{!
38-
}}{{#gson}}{{!
39-
}}import com.google.gson.Gson;
33+
}}{{#gson}}import com.google.gson.Gson;
4034
import com.google.gson.JsonElement;
4135
import com.google.gson.JsonObject;
4236
import com.google.gson.TypeAdapterFactory;

mustache-templates/target/classes/templates/generateBuilders.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
}}{{!
1717
Source: openapi-to-java-records-mustache-templates
18-
Version: 2.9.2
18+
Version: 2.9.3
1919
Type: Custom
2020
Dependencies:
2121
- none

mustache-templates/target/classes/templates/javadoc.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
}}{{!
1717
Source: openapi-to-java-records-mustache-templates
18-
Version: 2.9.2
18+
Version: 2.9.3
1919
Type: Custom
2020
Dependencies:
2121
- none

mustache-templates/target/classes/templates/licenseInfo.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
}}{{!
1717
Source: openapi-to-java-records-mustache-templates
18-
Version: 2.9.2
18+
Version: 2.9.3
1919
Type: Override
2020
Dependencies:
2121
- none
@@ -39,6 +39,6 @@
3939
* openapi-to-java-records-mustache-templates. For further information,
4040
* questions, requesting features or reporting issues, please visit:
4141
* https://github.com/Chrimle/openapi-to-java-records-mustache-templates.
42-
* Generated with Version: 2.9.2
42+
* Generated with Version: 2.9.3
4343
*
4444
*/

mustache-templates/target/classes/templates/modelEnum.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
}}{{!
1717
Source: openapi-to-java-records-mustache-templates
18-
Version: 2.9.2
18+
Version: 2.9.3
1919
Type: Override
2020
Dependencies:
2121
- `additionalEnumTypeAnnotations.mustache` (Official)

mustache-templates/target/classes/templates/pojo.mustache

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
}}{{!
1717
Source: openapi-to-java-records-mustache-templates
18-
Version: 2.9.2
18+
Version: 2.9.3
1919
Type: Override
2020
Dependencies:
2121
- `additionalModelTypeAnnotations.mustache` (Official)
@@ -30,13 +30,7 @@
3030
3131
}}{{!
3232
Imports needed for 'okhttp-gson'
33-
}}{{#jackson}}import com.fasterxml.jackson.annotation.JsonCreator;{{!
34-
}}{{#vars}}{{#isEnum}}{{#-first}}
35-
import com.fasterxml.jackson.annotation.JsonValue;{{/-first}}{{/isEnum}}{{/vars}}
36-
37-
{{/jackson}}{{!
38-
}}{{#gson}}{{!
39-
}}import com.google.gson.Gson;
33+
}}{{#gson}}import com.google.gson.Gson;
4034
import com.google.gson.JsonElement;
4135
import com.google.gson.JsonObject;
4236
import com.google.gson.TypeAdapterFactory;

0 commit comments

Comments
 (0)