This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push: new 12e9e5a Better number-string conversion. 12e9e5a is described below commit 12e9e5aae3c55d8d9db1288951d5ec75328cc701 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Nov 21 13:59:17 2020 -0500 Better number-string conversion. --- src/test/java/org/apache/commons/collections4/IterableUtilsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java b/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java index b26d9c1..620ae32 100644 --- a/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/IterableUtilsTest.java @@ -485,7 +485,7 @@ public class IterableUtilsTest { result = IterableUtils.toString(null); assertEquals("[]", result); - result = IterableUtils.toString(iterableA, input -> new Integer(input * 2).toString()); + result = IterableUtils.toString(iterableA, input -> Integer.toString(input * 2)); assertEquals("[2, 4, 4, 6, 6, 6, 8, 8, 8, 8]", result); result = IterableUtils.toString(new ArrayList<Integer>(), input -> { @@ -504,7 +504,7 @@ public class IterableUtilsTest { @Test public void testToStringDelimiter() { - final Transformer<Integer, String> transformer = input -> new Integer(input * 2).toString(); + final Transformer<Integer, String> transformer = input -> Integer.toString(input * 2); String result = IterableUtils.toString(iterableA, transformer, "", "", ""); assertEquals("2446668888", result);