addAll_to_constructor (#536)

This commit is contained in:
XenoAmess 2020-06-13 23:08:33 +08:00 committed by GitHub
parent 367f39ee29
commit 6dd1cf3c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -115,8 +115,7 @@ public class ExtendedMessageFormatTest {
final String extendedPattern = "Name: {0,upper} ";
final String pattern = extendedPattern + builtinsPattern;
final HashSet<Locale> testLocales = new HashSet<>();
testLocales.addAll(Arrays.asList(DateFormat.getAvailableLocales()));
final HashSet<Locale> testLocales = new HashSet<>(Arrays.asList(DateFormat.getAvailableLocales()));
testLocales.retainAll(Arrays.asList(NumberFormat.getAvailableLocales()));
testLocales.add(null);