You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/06/13 22:53:21 UTC

svn commit: r1135275 - /commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/DigesterTestCase.java

Author: sebb
Date: Mon Jun 13 20:53:21 2011
New Revision: 1135275

URL: http://svn.apache.org/viewvc?rev=1135275&view=rev
Log:
Avoid compilation error when using Sun Java 1.5:
DigesterTestCase.java:[673,26] incomparable types: java.lang.Object and java.lang.Object

Modified:
    commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/DigesterTestCase.java

Modified: commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/DigesterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/DigesterTestCase.java?rev=1135275&r1=1135274&r2=1135275&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/DigesterTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/java/org/apache/commons/digester3/DigesterTestCase.java Mon Jun 13 20:53:21 2011
@@ -21,6 +21,7 @@ package org.apache.commons.digester3;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNotSame;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertSame;
 import static org.junit.Assert.assertTrue;
@@ -670,7 +671,7 @@ public class DigesterTestCase
 
         assertNotNull( d.peek( 0 ) );
         // for obj4, a copy should have been pushed
-        assertFalse( obj4 == d.peek( 0 ) );
+        assertNotSame( obj4, d.peek( 0 ) );
         assertEquals( obj4, d.peek( 0 ) );
         // for obj3, replacement only occurs on pop
         assertSame( obj3, d.peek( 1 ) );