Move the JsonbProperty annotation from the getter to the field declaration (#10035)

Co-authored-by: Mike Anderson <mike.d.anderson@oracle.com>
This commit is contained in:
Mike 2021-07-31 08:19:44 -05:00 committed by GitHub
parent 6686048b0e
commit 831034bb24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,9 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{#serializ
* {{{description}}}
**/
{{/description}}
{{^withXml}}
@JsonbProperty("{{baseName}}")
{{/withXml}}
{{#isContainer}}
private {{{datatypeWithEnum}}} {{name}}{{#required}} = {{{defaultValue}}}{{/required}}{{^required}} = null{{/required}};
{{/isContainer}}
@ -76,9 +79,6 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{#serializ
{{#deprecated}}
@Deprecated
{{/deprecated}}
{{^withXml}}
@JsonbProperty("{{baseName}}")
{{/withXml}}
{{#vendorExtensions.x-extra-annotation}}
{{{vendorExtensions.x-extra-annotation}}}
{{/vendorExtensions.x-extra-annotation}}