From 5f9e0851da9e74c12e04f5a62cb7aeb1a8ab7589 Mon Sep 17 00:00:00 2001 From: Pascal Schumacher Date: Tue, 5 May 2015 23:25:12 +0200 Subject: [PATCH] remove compiler warnings of joinWith tests --- .../java/org/apache/commons/lang3/StringUtilsTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java index 52909c5ba..ecc6afca8 100644 --- a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java @@ -461,18 +461,18 @@ public class StringUtilsTest { @Test public void testJoinWith() { assertEquals("", StringUtils.joinWith(",", new Object[0])); // empty array - assertEquals("", StringUtils.joinWith(",", NULL_ARRAY_LIST)); + assertEquals("", StringUtils.joinWith(",", (Object[]) NULL_ARRAY_LIST)); assertEquals("null", StringUtils.joinWith(",", NULL_TO_STRING_LIST)); //toString method prints 'null' - assertEquals("a,b,c", StringUtils.joinWith(",", new String[]{"a", "b", "c"})); - assertEquals(",a,", StringUtils.joinWith(",", new String[]{null, "a", ""})); + assertEquals("a,b,c", StringUtils.joinWith(",", new Object[]{"a", "b", "c"})); + assertEquals(",a,", StringUtils.joinWith(",", new Object[]{null, "a", ""})); assertEquals("ab", StringUtils.joinWith(null, "a", "b")); } @Test(expected = IllegalArgumentException.class) public void testJoinWithThrowsException() { - StringUtils.joinWith(",", null); + StringUtils.joinWith(",", (Object[]) null); }