commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1819353 - /commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/IndexedPropertyTestCase.java
Date Wed, 27 Dec 2017 19:08:24 GMT
Author: ggregory
Date: Wed Dec 27 19:08:24 2017
New Revision: 1819353

URL: http://svn.apache.org/viewvc?rev=1819353&view=rev
Log:
Remove needless type casts.

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

Modified: commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/IndexedPropertyTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/IndexedPropertyTestCase.java?rev=1819353&r1=1819352&r2=1819353&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/IndexedPropertyTestCase.java
(original)
+++ commons/proper/beanutils/trunk/src/test/java/org/apache/commons/beanutils/IndexedPropertyTestCase.java
Wed Dec 27 19:08:24 2017
@@ -159,7 +159,7 @@ public class IndexedPropertyTestCase {
     @Test
     public void testArrayReadMethod() throws Exception {
         final PropertyDescriptor descriptor =
-             (PropertyDescriptor)propertyUtilsBean.getPropertyDescriptor(bean, "stringArray");
+             propertyUtilsBean.getPropertyDescriptor(bean, "stringArray");
         assertNotNull("No Array Read Method", descriptor.getReadMethod());
     }
 
@@ -169,7 +169,7 @@ public class IndexedPropertyTestCase {
     @Test
     public void testArrayWriteMethod() throws Exception {
         final PropertyDescriptor descriptor =
-             (PropertyDescriptor)propertyUtilsBean.getPropertyDescriptor(bean, "stringArray");
+             propertyUtilsBean.getPropertyDescriptor(bean, "stringArray");
         assertNotNull("No Array Write Method", descriptor.getWriteMethod());
     }
 
@@ -203,7 +203,7 @@ public class IndexedPropertyTestCase {
     @Test
     public void testListReadMethod() throws Exception {
         final PropertyDescriptor descriptor =
-             (PropertyDescriptor)propertyUtilsBean.getPropertyDescriptor(bean, "stringList");
+             propertyUtilsBean.getPropertyDescriptor(bean, "stringList");
         assertNotNull("No List Read Method", descriptor.getReadMethod());
     }
 
@@ -217,7 +217,7 @@ public class IndexedPropertyTestCase {
     @Test
     public void testListWriteMethod() throws Exception {
         final PropertyDescriptor descriptor =
-             (PropertyDescriptor)propertyUtilsBean.getPropertyDescriptor(bean, "stringList");
+             propertyUtilsBean.getPropertyDescriptor(bean, "stringList");
         assertNotNull("No List Write Method", descriptor.getWriteMethod());
     }
 
@@ -251,7 +251,7 @@ public class IndexedPropertyTestCase {
     @Test
     public void testArrayListReadMethod() throws Exception {
         final PropertyDescriptor descriptor =
-             (PropertyDescriptor)propertyUtilsBean.getPropertyDescriptor(bean, "arrayList");
+             propertyUtilsBean.getPropertyDescriptor(bean, "arrayList");
         assertNotNull("No ArrayList Read Method", descriptor.getReadMethod());
     }
 



Mime
View raw message