Skip to content

Commit

Permalink
spacing/spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Jul 1, 2024
1 parent 8a1028c commit 5538fa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/meeuw/i18n/languages/ISO_639_3_Code.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public class ISO_639_3_Code implements LanguageCode {

/**
* A stream with all known {@link ISO_639_Code language codes}.
* If the langauge has a 2 letter part 1 code, it will <em>not</em> be implicitly upgraded
* If the language has a 2 letter part 1 code, it will <em>not</em> be implicitly upgraded
* to an {@link ISO_639_1_Code
*
* @see {@link LanguageCode#stream()} For a version that <em>does</em> upgrade
Expand Down
10 changes: 0 additions & 10 deletions src/main/java/org/meeuw/i18n/languages/LanguageCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ static LanguageCode languageCode(String code) {
.orElseThrow(() -> new IllegalArgumentException("Unknown language code '" + code + "'"));
}


/**
* Ase {@link #languageCode(String)}, but it returns {@code null} if the argument is {@code null} or the empty string
* @since 3.3
Expand All @@ -207,7 +206,6 @@ static LanguageCode languageCode(String code) {
return languageCode(code);
}


/**
* Defaulting version of {@link ISO_639#getByPart3(String, boolean)}, matching retired codes too.
* @deprecated Confusing, since not matching like {@link #code()}
Expand All @@ -218,9 +216,6 @@ static Optional<LanguageCode> getByCode(@Size(min = 3, max=3) String code) {
return ISO_639.getByPart3(code);
}




/**
* Retrieves a {@link ISO_639_3_Code} by its Part1 code {@link #part1()}
*
Expand All @@ -233,7 +228,6 @@ static Optional<LanguageCode> getByPart1(String code) {
return ISO_639.getByPart1(code);
}


/**
* Retrieves a {@link LanguageCode} by its Part2B ('bibliographic') code {@link ISO_639_3_Code#part2B()}
*
Expand Down Expand Up @@ -268,7 +262,6 @@ static Optional<LanguageCode> getByPart2T(String code) {
*/
@Deprecated
static Optional<LanguageCode> getByPart3(@Size(min = 3, max = 3) String code, boolean matchRetired) {

return ISO_639.getByPart3(code, matchRetired);
}

Expand All @@ -280,8 +273,6 @@ static Optional<LanguageCode> getByPart3(@Size(min = 3, max = 3) String code) {
return getByPart3(code, true);
}



@NonNull
static LanguageCode updateToEnum(@NonNull LanguageCode languageCode) {
if (! (languageCode instanceof ISO_639_1_Code) && languageCode.part1() != null) {
Expand All @@ -291,7 +282,6 @@ static LanguageCode updateToEnum(@NonNull LanguageCode languageCode) {
}
}


/**
* The {@link LanguageCode#part1() ISO-639-1-code} if available, otherwise the {@link LanguageCode#part3() ISO-639-3 code}.
*
Expand Down

0 comments on commit 5538fa8

Please sign in to comment.