Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Feb 11, 2024
1 parent 3982979 commit 213c979
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ See also the https://github.com/mihxil/i18n-iso-639-3/blob/main/src/test/java/or
include::src/test/java/org/meeuw/i18n/languages/test/LanguageCodeTest.java[]
----

=== Retired codes
`LanguageCode#getByCode` will also support retired codes if possible. This means that the code of the returned object may be different:

[source, java]
----
// the 'krim' dialect (Sierra Leano) officially merged into 'bmf' (Bom-Kim) in 2017
assertThat(LanguageCode.getByCode("krm").get().getCode()).isEqualTo("bmf");
----

== Support

=== JAXB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public void getCode() {

@Test
public void krm() {
// the 'krim' dialect (Sierra Leano) officially merged into 'bmf' (Bom-Kim) in 2017
assertThat(LanguageCode.getByCode("krm").get().getCode()).isEqualTo("bmf");

}


Expand Down

0 comments on commit 213c979

Please sign in to comment.