Skip to content

Commit

Permalink
MET-6032 Fixing code in Country class
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanaCMS committed Aug 6, 2024
1 parent 13fc6b8 commit b256db1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ public static Country getCountryFromIsoCode(String isoCode) {
* @param countryName The string value to match the enum values with
* @return The enum country values that matches the given string value
*/
public static Country fromCountryNameToISOCode(String countryName){
public static Country fromCountryNameToIsoCode(String countryName){
Country result = null;
for(Country country : values()){
if(country.name().equals(countryName)){
if(country.getName().equals(countryName)){
result = country;
break;
}
Expand Down

0 comments on commit b256db1

Please sign in to comment.