Skip to content

Commit

Permalink
Minor: clean up the generated code for java: remove blank lines betwe…
Browse files Browse the repository at this point in the history
…en javadoc and method signature.

Signed-off-by: Nazar Kacharaba <[email protected]>
  • Loading branch information
NazarKacharaba committed Jan 14, 2025
1 parent b453f88 commit 2fe1ec6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Dart: disabled generation of `invalid_use_of_visible_for_testing_member` warning from the generated code for a hierarchy of classes.
* Dart: removed generation of redundant import for constants declared with external types. The redundant import caused linter warnings.
* Dart: removed generation of redundant `default` clause in exhaustive switch-cases for enumerations. The redundant `default` caused linter warnings.
* Java: cleaned up the generated code: removed blank lines.

## 13.10.1
Release date 2024-12-12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
{{#ifPredicate "hasAnyComment"}}
/**
{{prefixPartial "combinedComment" " * "}}
*/
{{#if attributes.deprecated}}@Deprecated{{/if}}
{{/ifPredicate}}
*/{{#if attributes.deprecated}}
@Deprecated {{/if}}{{!!
}}{{/ifPredicate}}{{!!
{{+combinedComment}}{{!!
}}{{+combinedComment}}{{!!
}}{{resolveName comment}}{{!!
}}{{#resolveName property.additionalDescriptionComment}}{{#unless this.isEmpty}}
{{this}}{{/unless}}{{/resolveName}}{{!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

{{#unless constructorComment.isEmpty}}
/**
{{#resolveName constructorComment}}{{prefix this " * "}}{{/resolveName}}
{{#uninitializedFields}}
{{#resolveName constructorComment}}{{prefix this " * "}}{{/resolveName}}{{!!
}}{{#uninitializedFields}}
* @param {{resolveName}} {{#resolveName comment}}{{prefix this " * " skipFirstLine=true}}{{/resolveName}}
{{/uninitializedFields}}
*/
Expand Down Expand Up @@ -58,7 +58,6 @@
}}{{#set struct=this}}{{#fieldConstructors}}
{{#ifPredicate "hasAnyComment"}}
/**

{{#unless comment.isEmpty}}{{#resolveName comment}}{{prefix this " * "}}
{{/resolveName}}{{/unless}}{{!!
}}{{#if comment.isEmpty}}{{#resolveName constructorComment}}{{#unless this.isEmpty}}{{prefix this " * "}}
Expand Down

0 comments on commit 2fe1ec6

Please sign in to comment.