From 1bc542778bb3792e90996ef18c3b938791a92c90 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Wed, 28 Oct 2020 17:47:24 +0100 Subject: [PATCH] Nit-pick (unit test). --- .../commons/math4/complex/ComplexFormatAbstractTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java b/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java index 271bdb791..869e6064b 100644 --- a/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java +++ b/src/test/java/org/apache/commons/math4/complex/ComplexFormatAbstractTest.java @@ -340,9 +340,8 @@ public abstract class ComplexFormatAbstractTest { @Test public void testGetAvailableLocales() { - HashSet s1 = new HashSet<>(Arrays.asList(NumberFormat.getAvailableLocales())); - HashSet s2 = new HashSet<>(Arrays.asList(ComplexFormat.getAvailableLocales())); - Assert.assertEquals(s1,s2); + Assert.assertEquals(new HashSet<>(Arrays.asList(NumberFormat.getAvailableLocales())), + new HashSet<>(Arrays.asList(ComplexFormat.getAvailableLocales()))); } @Test