Author: britter
Date: Tue Nov  3 21:16:25 2015
New Revision: 1712418

URL: http://svn.apache.org/viewvc?rev=1712418&view=rev
Log:
Remove redundant array creation

Modified:
    
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/MethodUtilsTest.java

Modified: 
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/MethodUtilsTest.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/MethodUtilsTest.java?rev=1712418&r1=1712417&r2=1712418&view=diff
==============================================================================
--- 
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/MethodUtilsTest.java
 (original)
+++ 
commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/MethodUtilsTest.java
 Tue Nov  3 21:16:25 2015
@@ -33,7 +33,7 @@ public class MethodUtilsTest {
     public void isMappedSetterWithMappedPropertySetter()
             throws Exception {
         Method mappedPropertySetter =
-                TestBean.class.getMethod("setMappedProperty", new 
Class<?>[]{String.class, String.class});
+                TestBean.class.getMethod("setMappedProperty", String.class, 
String.class);
         assertTrue(MethodUtils.isMappedSetter(mappedPropertySetter));
     }
 
@@ -41,7 +41,7 @@ public class MethodUtilsTest {
     public void isMappedSetterWithIndexedPropertySetter()
             throws Exception {
         Method indexedPropertySetter =
-                TestBean.class.getMethod("setIntIndexed", new 
Class<?>[]{int.class, int.class});
+                TestBean.class.getMethod("setIntIndexed", int.class, 
int.class);
         assertFalse(MethodUtils.isMappedSetter(indexedPropertySetter));
     }
 
@@ -49,21 +49,21 @@ public class MethodUtilsTest {
     public void isMappedSetterWithStringPropertySetter()
             throws Exception {
 
-        Method stringPropertySetter = 
TestBean.class.getMethod("setStringProperty", new Class<?>[]{String.class});
+        Method stringPropertySetter = 
TestBean.class.getMethod("setStringProperty", String.class);
         assertFalse(MethodUtils.isMappedSetter(stringPropertySetter));
     }
 
     @Test
     public void isMappedGetterWithMappedPropertyGetter()
             throws Exception {
-        Method mappedPropertyGetter = 
TestBean.class.getMethod("getMappedProperty", new Class<?>[]{String.class});
+        Method mappedPropertyGetter = 
TestBean.class.getMethod("getMappedProperty", String.class);
         assertTrue(MethodUtils.isMappedGetter(mappedPropertyGetter));
     }
 
     @Test
     public void isMappedGetterWithIndexedPropertyGetter()
             throws Exception {
-        Method indexedPropertyGetter = 
TestBean.class.getMethod("getIntIndexed", new Class<?>[]{int.class});
+        Method indexedPropertyGetter = 
TestBean.class.getMethod("getIntIndexed", int.class);
         assertFalse(MethodUtils.isMappedGetter(indexedPropertyGetter));
     }
 
@@ -71,7 +71,7 @@ public class MethodUtilsTest {
     public void isMappedGetterWithStringPropertyGetter()
             throws Exception {
 
-        Method stringPropertyGetter = 
TestBean.class.getMethod("getStringProperty", new Class<?>[]{});
+        Method stringPropertyGetter = 
TestBean.class.getMethod("getStringProperty");
         assertFalse(MethodUtils.isMappedGetter(stringPropertyGetter));
     }
 


Reply via email to