Skip to content

Commit

Permalink
Fixing enum delaration statement (in its own line as a statement)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvensan committed Jan 8, 2025
1 parent 232836c commit 0b7bb6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion partials/java-class
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@
{%- endif %}
{# Enums #}
{%- if prop.enum() %}
{{ indent2 }}public static enum {{ type }} { {{ prop.enum() }} }
{{ indent2 }}public static enum {{ type }} {
{{ indent3 }} {{ prop.enum() }}
{{ indent2 }}};
{%- endif %}
{%- endfor -%}
{{ indent2 }}

{{ indent2 }}public String toString() {
{{ indent3 }}return "{{ className }} ["
Expand Down

0 comments on commit 0b7bb6b

Please sign in to comment.