Skip to content

Commit

Permalink
Merge pull request #50 from Shadow-Devil/patch-1
Browse files Browse the repository at this point in the history
Use `getValue()` instead of directly accessing `Name.value`
  • Loading branch information
NipunaRanasinghe authored Sep 13, 2024
2 parents cdb7aec + 418382e commit fd2199c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public Field build() {
fieldDefaultValue = fieldLabel;
}
String fieldName = fieldDescriptor.getName();
if (Arrays.stream(RESERVED_LITERAL_NAMES).anyMatch(fieldName::equalsIgnoreCase) || Names.ERROR.value
if (Arrays.stream(RESERVED_LITERAL_NAMES).anyMatch(fieldName::equalsIgnoreCase) || Names.ERROR.getValue()
.equalsIgnoreCase(fieldName)) {
fieldName = "'" + fieldName;
}
Expand Down

0 comments on commit fd2199c

Please sign in to comment.