commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1582287 - /commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java
Date Thu, 27 Mar 2014 13:09:26 GMT
Author: sebb
Date: Thu Mar 27 13:09:25 2014
New Revision: 1582287

URL: http://svn.apache.org/r1582287
Log:
Unnecessay cast

Modified:
    commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java

Modified: commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java?rev=1582287&r1=1582286&r2=1582287&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java
(original)
+++ commons/proper/proxy/trunk/core/src/test/java/org/apache/commons/proxy2/provider/CloningProviderTest.java
Thu Mar 27 13:09:25 2014
@@ -44,10 +44,10 @@ public class CloningProviderTest extends
     {
         final Date now = new Date();
         final CloningProvider<Date> provider = new CloningProvider<Date>(now);
-        final Date clone1 = (Date) provider.getObject();
+        final Date clone1 = provider.getObject();
         assertEquals(now, clone1);
         assertNotSame(now, clone1);
-        final Date clone2 = (Date) provider.getObject();
+        final Date clone2 = provider.getObject();
         assertEquals(now, clone2);
         assertNotSame(now, clone2);
         assertNotSame(clone2, clone1);



Mime
View raw message