commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r983140 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java
Date Fri, 06 Aug 2010 22:55:48 GMT
Author: jcarman
Date: Fri Aug  6 22:55:48 2010
New Revision: 983140

URL: http://svn.apache.org/viewvc?rev=983140&view=rev
Log:
Generifying toMap() method (adding in possibility for type inference on return type).

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java?rev=983140&r1=983139&r2=983140&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsTest.java Fri
Aug  6 22:55:48 2010
@@ -201,7 +201,7 @@ public class ArrayUtilsTest extends Test
     
     //-----------------------------------------------------------------------
     public void testToMap() {
-        Map<?, ?> map = ArrayUtils.toMap(new String[][] {{"foo", "bar"}, {"hello",
"world"}});
+        Map<String,String> map = ArrayUtils.toMap(new String[][] {{"foo", "bar"}, {"hello",
"world"}});
         
         assertEquals("bar", map.get("foo"));
         assertEquals("world", map.get("hello"));



Mime
View raw message