Skip to content

Commit

Permalink
Fixed logging warnings from templates (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhannes committed Jul 17, 2024
1 parent b698158 commit 3bf69bc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/resources/JavaLombok/modelOneOf.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ public sealed interface {{classname}}
{{~#interfaces}}{{#if @first}} extends {{else}}, {{/if}}{{{.}}}{{/interfaces}}
{{~#children}}{{#if @first}} permits {{else}}, {{/if}}{{{classname}}}{{/children}} {

{{#if discriminator}}
{{#discriminator}}
{{#with discriminator}}
{{{propertyType}}} {{propertyGetter}}();

static Class<? extends {{{classname}}}> getType(String {{propertyName}}) {
Expand All @@ -20,6 +19,5 @@ public sealed interface {{classname}}
return new {{{modelName}}}().set{{capitalizeFirst propertyName}}("{{mappingName}}");
}
{{/mappedModels}}
{{/discriminator}}
{{/if}}
{{/with}}
}

0 comments on commit 3bf69bc

Please sign in to comment.