Skip to content

Commit

Permalink
Use forLanguageTag instead of the Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Dec 12, 2024
1 parent e8f9acb commit 791c4bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/yetanalytics/xapi/model/LangTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public class LangTag {
*/
@JsonCreator
public LangTag(String langTagStr) throws IllformedLocaleException {
Builder builder = new Builder();
languageTagLocale = builder.setLanguageTag(langTagStr).build();
languageTagLocale = Locale.forLanguageTag(langTagStr);
languageTagString = langTagStr;
}

Expand Down

0 comments on commit 791c4bf

Please sign in to comment.