Skip to content

Commit

Permalink
- fixes a bug where java enums could have duplicated values
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Aug 24, 2020
1 parent ad0cf48 commit efacbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Templates/Java/models_generated/Enum.java.tt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public enum <#= c.Name.ToUpperFirstChar()#>
{
<#
foreach(var value in c.AsOdcmEnum().Members)
foreach(var value in c.AsOdcmEnum().Members.GroupBy(x => x.Name.ToUnderscore().ToUpper()).Select(x => x.First()).ToList())
{
#>
/**
Expand Down

0 comments on commit efacbea

Please sign in to comment.