Skip to content

Commit

Permalink
fix tostring method
Browse files Browse the repository at this point in the history
  • Loading branch information
firm1 committed Feb 4, 2017
1 parent e160a90 commit 47bb6c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/zestedesavoir/zestwriter/utils/Lang.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

@Getter
@Setter
@ToString
@AllArgsConstructor
public class Lang {
private static List<Lang> langAvailable = Arrays.asList(new Lang(Locale.FRANCE), new Lang(Locale.ENGLISH));
Expand All @@ -26,4 +25,9 @@ public static Lang getLangFromCode(String code) {
public static List<Lang> getLangAvailable() {
return langAvailable;
}

@Override
public String toString() {
return locale.getDisplayLanguage();
}
}

0 comments on commit 47bb6c9

Please sign in to comment.