You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2013/05/18 23:21:00 UTC

svn commit: r1484185 - /lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/common/util/NamedListTest.java

Author: uschindler
Date: Sat May 18 21:20:59 2013
New Revision: 1484185

URL: http://svn.apache.org/r1484185
Log:
SOLR-4048: Java 6 does not support casting Object to int: Java 7 autoboxes automatically, but not Java 6

Modified:
    lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/common/util/NamedListTest.java

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/common/util/NamedListTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/common/util/NamedListTest.java?rev=1484185&r1=1484184&r2=1484185&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/common/util/NamedListTest.java (original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/common/util/NamedListTest.java Sat May 18 21:20:59 2013
@@ -85,9 +85,9 @@ public class NamedListTest extends Lucen
     assertTrue(nltest instanceof NamedList);
     Integer int1test = (Integer) nl.findRecursive("key2", "k2int1");
     assertEquals(int1test, (Integer) 5);
-    int int2test = (int) nl.findRecursive("key2", "k2int2");
+    int int2test = (Integer) nl.findRecursive("key2", "k2int2");
     assertEquals(int2test, 7);
-    int int3test = (int) nl.findRecursive("key2", "k2int3");
+    int int3test = (Integer) nl.findRecursive("key2", "k2int3");
     assertEquals(int3test, 48);
   }
 }