You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2015/05/07 19:43:03 UTC

[1/2] [lang] remove compiler warnings of joinWith tests

Repository: commons-lang
Updated Branches:
  refs/heads/master b14c6e7a5 -> a05233f99


remove compiler warnings of joinWith tests

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/5f9e0851
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/5f9e0851
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/5f9e0851

Branch: refs/heads/master
Commit: 5f9e0851da9e74c12e04f5a62cb7aeb1a8ab7589
Parents: d6dd2b4
Author: Pascal Schumacher <pa...@gmx.net>
Authored: Tue May 5 23:25:12 2015 +0200
Committer: Pascal Schumacher <pa...@gmx.net>
Committed: Tue May 5 23:25:12 2015 +0200

----------------------------------------------------------------------
 src/test/java/org/apache/commons/lang3/StringUtilsTest.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/5f9e0851/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
index 52909c5..ecc6afc 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);
     }
 
 


[2/2] [lang] Merge branch 'StringUtilsTest_compiler_warnings'

Posted by br...@apache.org.
Merge branch 'StringUtilsTest_compiler_warnings'

Remove compiler warnings of joinWith tests. Thanks to Pascal Schuhmacher.


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/a05233f9
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/a05233f9
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/a05233f9

Branch: refs/heads/master
Commit: a05233f99435a49debd5b94ead23155285bf65a3
Parents: b14c6e7 5f9e085
Author: Benedikt Ritter <br...@apache.org>
Authored: Thu May 7 19:39:56 2015 +0200
Committer: Benedikt Ritter <br...@apache.org>
Committed: Thu May 7 19:39:56 2015 +0200

----------------------------------------------------------------------
 src/test/java/org/apache/commons/lang3/StringUtilsTest.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------