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);