This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git
commit 1bc542778bb3792e90996ef18c3b938791a92c90 Author: Gilles Sadowski <gillese...@gmail.com> AuthorDate: Wed Oct 28 17:47:24 2020 +0100 Nit-pick (unit test). --- .../org/apache/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 271bdb7..869e606 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<Locale> s1 = new HashSet<>(Arrays.asList(NumberFormat.getAvailableLocales())); - HashSet<Locale> 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