From 6dd1cf3c6d03cabcd660f536ec625fde1396e950 Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Sat, 13 Jun 2020 23:08:33 +0800 Subject: [PATCH] addAll_to_constructor (#536) --- .../apache/commons/lang3/text/ExtendedMessageFormatTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java b/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java index a7e8b3bdf..cf8994597 100644 --- a/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java +++ b/src/test/java/org/apache/commons/lang3/text/ExtendedMessageFormatTest.java @@ -115,8 +115,7 @@ public class ExtendedMessageFormatTest { final String extendedPattern = "Name: {0,upper} "; final String pattern = extendedPattern + builtinsPattern; - final HashSet testLocales = new HashSet<>(); - testLocales.addAll(Arrays.asList(DateFormat.getAvailableLocales())); + final HashSet testLocales = new HashSet<>(Arrays.asList(DateFormat.getAvailableLocales())); testLocales.retainAll(Arrays.asList(NumberFormat.getAvailableLocales())); testLocales.add(null);