From 5538fa816d44936ad0eff8cb8bc172a5f1fa5b0a Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Mon, 1 Jul 2024 17:06:40 +0200 Subject: [PATCH] spacing/spelling --- .../java/org/meeuw/i18n/languages/ISO_639_3_Code.java | 2 +- .../java/org/meeuw/i18n/languages/LanguageCode.java | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/java/org/meeuw/i18n/languages/ISO_639_3_Code.java b/src/main/java/org/meeuw/i18n/languages/ISO_639_3_Code.java index 1757854..4ea56bb 100644 --- a/src/main/java/org/meeuw/i18n/languages/ISO_639_3_Code.java +++ b/src/main/java/org/meeuw/i18n/languages/ISO_639_3_Code.java @@ -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 not be implicitly upgraded + * If the language has a 2 letter part 1 code, it will not be implicitly upgraded * to an {@link ISO_639_1_Code * * @see {@link LanguageCode#stream()} For a version that does upgrade diff --git a/src/main/java/org/meeuw/i18n/languages/LanguageCode.java b/src/main/java/org/meeuw/i18n/languages/LanguageCode.java index f2e7e85..eb827e7 100644 --- a/src/main/java/org/meeuw/i18n/languages/LanguageCode.java +++ b/src/main/java/org/meeuw/i18n/languages/LanguageCode.java @@ -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 @@ -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()} @@ -218,9 +216,6 @@ static Optional 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()} * @@ -233,7 +228,6 @@ static Optional getByPart1(String code) { return ISO_639.getByPart1(code); } - /** * Retrieves a {@link LanguageCode} by its Part2B ('bibliographic') code {@link ISO_639_3_Code#part2B()} * @@ -268,7 +262,6 @@ static Optional getByPart2T(String code) { */ @Deprecated static Optional getByPart3(@Size(min = 3, max = 3) String code, boolean matchRetired) { - return ISO_639.getByPart3(code, matchRetired); } @@ -280,8 +273,6 @@ static Optional 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) { @@ -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}. *