commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1746220 - in /commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils: DynaResultSetTestCase.java LazyDynaListTestCase.java
Date Tue, 31 May 2016 05:09:11 GMT
Author: ggregory
Date: Tue May 31 05:09:11 2016
New Revision: 1746220

URL: http://svn.apache.org/viewvc?rev=1746220&view=rev
Log:
Remove unnecessary casts.

Modified:
    commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/DynaResultSetTestCase.java
    commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/LazyDynaListTestCase.java

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/DynaResultSetTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/DynaResultSetTestCase.java?rev=1746220&r1=1746219&r2=1746220&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/DynaResultSetTestCase.java
(original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/DynaResultSetTestCase.java
Tue May 31 05:09:11 2016
@@ -199,7 +199,7 @@ public class DynaResultSetTestCase exten
         final Iterator<DynaBean> rows = dynaClass.iterator();
         rows.next();
         rows.next();
-        final DynaBean row = (DynaBean) rows.next();
+        final DynaBean row = rows.next();
 
         // Invalid argument test
         try {
@@ -258,7 +258,7 @@ public class DynaResultSetTestCase exten
         final Iterator<DynaBean> rows = dynaClass.iterator();
         rows.next();
         rows.next();
-        final DynaBean row = (DynaBean) rows.next();
+        final DynaBean row = rows.next();
 
         // Invalid argument test
         try {

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/LazyDynaListTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/LazyDynaListTestCase.java?rev=1746220&r1=1746219&r2=1746220&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/LazyDynaListTestCase.java
(original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/LazyDynaListTestCase.java
Tue May 31 05:09:11 2016
@@ -613,7 +613,7 @@ public class LazyDynaListTestCase extend
         final LazyDynaList list = new LazyDynaList(LazyDynaBean.class);
         final LazyDynaBean elem = new LazyDynaBean();
         list.add(elem);
-        final LazyDynaBean[] array = (LazyDynaBean[]) list.toArray(new LazyDynaBean[0]);
+        final LazyDynaBean[] array = list.toArray(new LazyDynaBean[0]);
         assertEquals("Wrong array size", 1, array.length);
         assertEquals("Wrong element", elem, array[0]);
     }



Mime
View raw message