Skip to content

Commit ecbbccb

Browse files
committed
[Java] Annotate Deprecated enum-classes with @Deprecated
1 parent a6c753e commit ecbbccb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import java.util.Locale;
1717
/**
1818
* {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}}
1919
*/
20-
{{#gson}}
20+
{{#isDeprecated}}@Deprecated
21+
{{/isDeprecated}}{{#gson}}
2122
@JsonAdapter({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.Adapter.class)
2223
{{/gson}}
2324
{{#jsonb}}

0 commit comments

Comments
 (0)