NewPipeExtractor/extractor/src/main/java/org/schabi/newpipe/extractor/localization
Profpatsch 7408173246 LocaleCompat.forLanguageTag: return Optional if parsing fails
It’s not obvious that the function will fail in some cases and throw
an `IllegalArgumentException`.

So instead of just failing if parsing fails, return an Optional that
all callers have to decide what to do (e.g. the YoutubeExtractor can
just ignore the locale in that case, like it does with most other
fields in the json if they are unexpected).
2024-01-07 14:31:34 +01:00
..
ContentCountry.java Fix checkstyle issues in subpackages with abstract classes 2022-03-26 19:40:10 +01:00
DateWrapper.java Fix checkstyle issues in subpackages with abstract classes 2022-03-26 19:40:10 +01:00
Localization.java LocaleCompat.forLanguageTag: return Optional if parsing fails 2024-01-07 14:31:34 +01:00
TimeAgoParser.java Add utility method to parse textual durations using TimeAgoParser's patterns 2023-08-06 12:13:33 +02:00
TimeAgoPatternsManager.java Fix checkstyle issues in subpackages with abstract classes 2022-03-26 19:40:10 +01:00