Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import java.util.Locale;
/**
* {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}}
*/
{{#gson}}
{{#isDeprecated}}@Deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion:

{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}

Copy link
Contributor Author

@Chrimle Chrimle Nov 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will result in an empty line, like:

/*
 * javadoc here...
 */
 
 @Deprecated

Also, making a newline between {{/isDeprecated}} and {{#gson}} will always generate another empty line after the deprecated-annotation, or result to 2 empty lines after the javadocs.

Is this OK? (from a Style-Guide perspective)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @wing328, the suggested change has been done, and the updated samples have been committed too. 👍

{{/isDeprecated}}{{#gson}}
@JsonAdapter({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.Adapter.class)
{{/gson}}
{{#jsonb}}
Expand Down