Skip to content

Commit

Permalink
added missing annotations CountryNotNullTypeHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Sep 25, 2023
1 parent 80b27ba commit 33061fa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ public CountryNotNullTypeHandler() {
public static class CountryNotNullConverter implements EnumConverter<String, Country> {
public CountryNotNullConverter() {}

@Override
public String fromEnum(Country value) {
return value != null ? value.getIso2LetterCode() : null;
}

@Override
public Country toEnum(String key) {
if (key == null) {
return null;
Expand Down

0 comments on commit 33061fa

Please sign in to comment.