Skip to content

Commit

Permalink
#29498 Reverting changes in LanguageFactoryImpl, leaving exactly as i…
Browse files Browse the repository at this point in the history
…t was.
  • Loading branch information
jgambarios committed Nov 11, 2024
1 parent 7a1b2da commit 4e0d89c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.commons.lang3.StringUtils;

/**
* Implementation class for the {@link LanguageFactory}.
Expand Down Expand Up @@ -136,7 +135,7 @@ protected Language getLanguage(final String languageId) {
}

// if we have a number
if (StringUtils.isNumeric(languageId)) {
if(!languageId.contains("_")){
try {
final long parsedLangId = Long.parseLong(languageId);
return getLanguage(parsedLangId);
Expand Down

0 comments on commit 4e0d89c

Please sign in to comment.