Fix src/main/resources/JavaSpring/pojo.mustache to generate @Deprecated annotation unrelated to description. (#20905)

Co-authored-by: Verhas Mihaly <mihaly.verhas@intuitech.studio>
This commit is contained in:
Mihály Verhás 2025-03-20 06:54:08 +01:00 committed by GitHub
parent 1996d7e8fc
commit 20db1e1590
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,10 +3,10 @@
* @deprecated{{/isDeprecated}} * @deprecated{{/isDeprecated}}
*/ */
{{>additionalModelTypeAnnotations}} {{>additionalModelTypeAnnotations}}
{{#description}}
{{#isDeprecated}} {{#isDeprecated}}
@Deprecated @Deprecated
{{/isDeprecated}} {{/isDeprecated}}
{{#description}}
{{#swagger1AnnotationLibrary}} {{#swagger1AnnotationLibrary}}
@ApiModel(description = "{{{description}}}") @ApiModel(description = "{{{description}}}")
{{/swagger1AnnotationLibrary}} {{/swagger1AnnotationLibrary}}