You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}
91
91
{{#vendorExtensions.x-java-no-args-constructor}}
92
92
93
93
{{#constructorAnnotation}}
94
-
{{.}}
94
+
{{{.}}}
95
95
{{/constructorAnnotation}}
96
96
public {{classname}}() {
97
97
super();
@@ -105,7 +105,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}
105
105
* Constructor with only required parameters{{#generateConstructorWithAllArgs}}{{^vendorExtensions.x-java-all-args-constructor}} and all parameters{{/vendorExtensions.x-java-all-args-constructor}}{{/generateConstructorWithAllArgs}}
106
106
*/
107
107
{{#constructorAnnotation}}
108
-
{{.}}
108
+
{{{.}}}
109
109
{{/constructorAnnotation}}
110
110
public {{classname}}({{#requiredVars}}{{#useJsonProperty}}@JsonProperty("{{baseName}}") {{/useJsonProperty}}{{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/requiredVars}}) {
111
111
{{#parent}}
@@ -130,7 +130,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}
130
130
* Constructor with all args parameters
131
131
*/
132
132
{{#constructorAnnotation}}
133
-
{{.}}
133
+
{{{.}}}
134
134
{{/constructorAnnotation}}
135
135
public {{classname}}({{#vendorExtensions.x-java-all-args-constructor-vars}}{{#useJsonProperty}}@JsonProperty("{{baseName}}") {{/useJsonProperty}}{{>nullableAnnotation}}{{{datatypeWithEnum}}} {{name}}{{^-last}}, {{/-last}}{{/vendorExtensions.x-java-all-args-constructor-vars}}) {
0 commit comments