harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r405418 - in /incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java: org/apache/harmony/tests/java/beans/infos/ tests/api/java/beans/ tests/api/java/beans/mock/
Date Tue, 09 May 2006 12:58:08 GMT
Author: tellison
Date: Tue May  9 05:58:06 2006
New Revision: 405418

URL: http://svn.apache.org/viewcvs?rev=405418&view=rev
Log:
Cast null to disambiguate and avoid compiler warnings.

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/infos/SampleBeanBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/BeansTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/CustomizedPersistenceDelegateTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/DefaultPersistenceDelegateTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/EventSetDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/IndexedPropertyDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/MethodDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/PropertyDescriptorTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java
    incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSubBeanInfo.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/infos/SampleBeanBeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/infos/SampleBeanBeanInfo.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/infos/SampleBeanBeanInfo.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/tests/java/beans/infos/SampleBeanBeanInfo.java
Tue May  9 05:58:06 2006
@@ -34,8 +34,8 @@
     public MethodDescriptor[] getMethodDescriptors() {
         try {
             return new MethodDescriptor[] {
-                new MethodDescriptor(SampleBean.class.getDeclaredMethod("getX",
-                        null))
+                new MethodDescriptor(
+                        SampleBean.class.getDeclaredMethod("getX", (Class[])null))
             };
         } catch (Exception e) {
             return null;

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/BeansTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/BeansTest.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/BeansTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/BeansTest.java
Tue May  9 05:58:06 2006
@@ -110,7 +110,7 @@
 		Object bean = Beans.instantiate(loader,
 				"tests.api.java.beans.mock.MockJavaBean2");
 		assertEquals("as_class", (String) bean.getClass().getMethod(
-				"getPropertyOne", null).invoke(bean, null));
+				"getPropertyOne", (Class[])null).invoke(bean, null));
 		assertSame(loader, bean.getClass().getClassLoader());
 	}
 
@@ -132,7 +132,7 @@
 		Object bean = Beans.instantiate(loader,
 				"tests.api.java.beans.mock.MockJavaBean2");
 		assertEquals("as_object", (String) bean.getClass().getMethod(
-				"getPropertyOne", null).invoke(bean, null));
+				"getPropertyOne", (Class[])null).invoke(bean, null));
 		assertSame(loader, bean.getClass().getClassLoader());
 	}
 
@@ -171,7 +171,7 @@
 		Object bean = Beans.instantiate(loader,
 				"tests.api.java.beans.mock.MockJavaBean2", context);
 		assertEquals("as_class", (String) bean.getClass().getMethod(
-				"getPropertyOne", null).invoke(bean, null));
+				"getPropertyOne", (Class[])null).invoke(bean, null));
 		assertSame(loader, bean.getClass().getClassLoader());
 		assertTrue(context.contains(bean));
 	}
@@ -195,7 +195,7 @@
 		Object bean = Beans.instantiate(loader,
 				"tests.api.java.beans.mock.MockJavaBean2", context);
 		assertEquals("as_object", (String) bean.getClass().getMethod(
-				"getPropertyOne", null).invoke(bean, null));
+				"getPropertyOne", (Class[])null).invoke(bean, null));
 		assertSame(loader, bean.getClass().getClassLoader());
 		assertTrue(context.contains(bean));
 	}
@@ -251,7 +251,7 @@
 		Object bean = Beans.instantiate(loader, beanName, context, appInit);
 
 		assertEquals("as_class", (String) bean.getClass().getMethod(
-				"getPropertyOne", null).invoke(bean, null));
+				"getPropertyOne", (Class[])null).invoke(bean, null));
 		assertSame(loader, bean.getClass().getClassLoader());
 		assertTrue(context.contains(bean));
 	}
@@ -278,7 +278,7 @@
 		Object bean = Beans.instantiate(loader, beanName, context, appInit);
 
 		assertEquals("as_object", (String) bean.getClass().getMethod(
-				"getPropertyOne", null).invoke(bean, null));
+				"getPropertyOne", (Class[])null).invoke(bean, null));
 		assertSame(loader, bean.getClass().getClassLoader());
 		assertTrue(context.contains(bean));
 	}

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/CustomizedPersistenceDelegateTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/CustomizedPersistenceDelegateTest.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/CustomizedPersistenceDelegateTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/CustomizedPersistenceDelegateTest.java
Tue May  9 05:58:06 2006
@@ -160,7 +160,7 @@
 	}
 
 	public void testMethodPD() throws Exception {
-		Method m = Object.class.getMethod("getClass", null);
+		Method m = Object.class.getMethod("getClass", (Class[])null);
 		enc.writeObject(m);
 		assertEquals(m, enc.get(m));
 	}

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/DefaultPersistenceDelegateTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/DefaultPersistenceDelegateTest.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/DefaultPersistenceDelegateTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/DefaultPersistenceDelegateTest.java
Tue May  9 05:58:06 2006
@@ -782,7 +782,7 @@
 		public PropertyDescriptor[] getPropertyDescriptors() {
 			try {
 				PropertyDescriptor pd = new PropertyDescriptor("name",
-						MockNoSetterBean.class.getMethod("getName", null), null);
+						MockNoSetterBean.class.getMethod("getName", (Class[])null), null);
 				return new PropertyDescriptor[] { pd };
 			} catch (Exception e) {
 				throw new Error(e);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/EventSetDescriptorTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/EventSetDescriptorTest.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/EventSetDescriptorTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/EventSetDescriptorTest.java
Tue May  9 05:58:06 2006
@@ -836,7 +836,7 @@
 		Method[] listenerMethods = new Method[] {
 				listenerType.getMethod("mockPropertyChange",
 						new Class[] { MockPropertyChangeEvent.class }),
-				listenerType.getMethod("mockPropertyChange_Invalid", null), };
+				listenerType.getMethod("mockPropertyChange_Invalid", (Class[])null), };
 		Class sourceClass = MockSourceClass.class;
 		Method addMethod = sourceClass.getMethod(
 				"addMockPropertyChangeListener", new Class[] { listenerType });
@@ -886,7 +886,7 @@
 						new Class[] { MockPropertyChangeEvent.class }), };
 		Class sourceClass = MockSourceClass.class;
 		Method addMethod = sourceClass.getMethod(
-				"addMockPropertyChangeListener_Invalid", null);
+				"addMockPropertyChangeListener_Invalid", (Class[])null);
 		Method removeMethod = sourceClass.getMethod(
 				"removeMockPropertyChangeListener",
 				new Class[] { listenerType });
@@ -934,7 +934,7 @@
 		Method addMethod = sourceClass.getMethod(
 				"addMockPropertyChangeListener", new Class[] { listenerType });
 		Method removeMethod = sourceClass.getMethod(
-				"addMockPropertyChangeListener_Invalid", null);
+				"addMockPropertyChangeListener_Invalid", (Class[])null);
 		EventSetDescriptor esd = new EventSetDescriptor(eventSetName,
 				listenerType, listenerMethods, addMethod, removeMethod);
 		assertEquals(removeMethod, esd.getRemoveListenerMethod());
@@ -1015,7 +1015,7 @@
 				"removeMockPropertyChangeListener",
 				new Class[] { listenerType });
 		Method getMethod = sourceClass.getMethod(
-				"addMockPropertyChangeListener_Invalid", null);
+				"addMockPropertyChangeListener_Invalid", (Class[])null);
 
 		EventSetDescriptor esd = new EventSetDescriptor(eventSetName,
 				listenerType, listenerMethods, addMethod, removeMethod,
@@ -1109,7 +1109,7 @@
 		Method[] listenerMethods = {
 				listenerType.getMethod("mockPropertyChange",
 						new Class[] { MockPropertyChangeEvent.class }),
-				listenerType.getMethod("mockPropertyChange_Invalid", null), };
+				listenerType.getMethod("mockPropertyChange_Invalid", (Class[])null), };
 		MethodDescriptor[] listenerMethodDescriptors = {
 				new MethodDescriptor(listenerMethods[0]),
 				new MethodDescriptor(listenerMethods[1]), };

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/IndexedPropertyDescriptorTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/IndexedPropertyDescriptorTest.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/IndexedPropertyDescriptorTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/IndexedPropertyDescriptorTest.java
Tue May  9 05:58:06 2006
@@ -45,7 +45,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -74,7 +74,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("getPropertyFive", null);
+		Method readMethod = beanClass.getMethod("getPropertyFive", (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -123,7 +123,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("setPropertyFive",
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -149,7 +149,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = null;
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
 				new Class[] { Integer.TYPE });
@@ -174,7 +174,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("getPropertyFive",
@@ -200,7 +200,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = null;
@@ -225,7 +225,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -251,7 +251,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -276,7 +276,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -307,7 +307,7 @@
 
 		String capitalName = propertyName.substring(0, 1).toUpperCase()
 				+ propertyName.substring(1);
-		Method readMethod = beanClass.getMethod("get" + capitalName, null);
+		Method readMethod = beanClass.getMethod("get" + capitalName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + capitalName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + capitalName,
@@ -424,7 +424,7 @@
 						+ propertyName, "get" + propertyName, "set"
 						+ propertyName);
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -701,7 +701,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -745,7 +745,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -770,7 +770,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -794,7 +794,7 @@
 		String invalidName = "An Invalid Property name";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -815,7 +815,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -837,7 +837,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -859,7 +859,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -880,7 +880,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -902,7 +902,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -924,7 +924,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -950,7 +950,7 @@
 		String anotherProp = "PropertyFive";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + anotherProp,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -977,7 +977,7 @@
 		String anotherProp = "PropertyFive";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + anotherProp,
@@ -999,7 +999,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1042,7 +1042,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1067,7 +1067,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1095,7 +1095,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1123,7 +1123,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1149,7 +1149,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1170,7 +1170,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1194,7 +1194,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1221,7 +1221,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1247,7 +1247,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,
@@ -1273,7 +1273,7 @@
 		String propertyName = "PropertyFour";
 		Class beanClass = MockJavaBean.class;
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String[].class });
 		Method indexedReadMethod = beanClass.getMethod("get" + propertyName,

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/MethodDescriptorTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/MethodDescriptorTest.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/MethodDescriptorTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/MethodDescriptorTest.java
Tue May  9 05:58:06 2006
@@ -47,7 +47,7 @@
             NoSuchMethodException {
         String beanName = "MethodDescriptorTest.bean";
         MockJavaBean bean = new MockJavaBean(beanName);
-        Method method = bean.getClass().getMethod("getBeanName", null);
+        Method method = bean.getClass().getMethod("getBeanName", (Class[])null);
         MethodDescriptor md = new MethodDescriptor(method);
 
         assertSame(method, md.getMethod());

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/PropertyDescriptorTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/PropertyDescriptorTest.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/PropertyDescriptorTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/PropertyDescriptorTest.java
Tue May  9 05:58:06 2006
@@ -47,7 +47,7 @@
 		Class beanClass = MockJavaBean.class;
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName, beanClass);
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd2 = new PropertyDescriptor(propertyName,
@@ -64,12 +64,12 @@
 			SecurityException, NoSuchMethodException {
 		String propertyName = "PropertyOne";
 		Class beanClass = MockJavaBean.class;
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
 				readMethod, null);
 
 		String propertyName2 = "PropertyThree";
-		Method readMethod2 = beanClass.getMethod("get" + propertyName2, null);
+		Method readMethod2 = beanClass.getMethod("get" + propertyName2, (Class[])null);
 		PropertyDescriptor pd2 = new PropertyDescriptor(propertyName2,
 				readMethod2, null);
 
@@ -85,7 +85,7 @@
 				readMethod, null);
 
 		String propertyName2 = "PropertyThree";
-		Method readMethod2 = beanClass.getMethod("get" + propertyName2, null);
+		Method readMethod2 = beanClass.getMethod("get" + propertyName2, (Class[])null);
 		PropertyDescriptor pd2 = new PropertyDescriptor(propertyName2,
 				readMethod2, null);
 
@@ -437,7 +437,7 @@
 			IntrospectionException {
 		String propertyName = "PropertyOne";
 		Class beanClass = MockJavaBean.class;
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
@@ -467,7 +467,7 @@
 			IntrospectionException {
 		String propertyName = "PropertyOne";
 		Class beanClass = MockJavaBean.class;
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		try {
@@ -516,7 +516,7 @@
 		Class beanClass = MockJavaBean.class;
 		String anotherProp = "PropertyTwo";
 
-		Method readMethod = beanClass.getMethod("get" + anotherProp, null);
+		Method readMethod = beanClass.getMethod("get" + anotherProp, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		try {
@@ -533,7 +533,7 @@
 			IntrospectionException {
 		String propertyName = "PropertyOne";
 		Class beanClass = MockJavaBean.class;
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = null;
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
 				readMethod, writeMethod);
@@ -564,7 +564,7 @@
 		Class beanClass = MockJavaBean.class;
 		String anotherProp = "PropertyTwo";
 
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + anotherProp,
 				new Class[] { Integer.class });
 		try {
@@ -605,7 +605,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName, null, null);
 
 		assertNull(pd.getReadMethod());
@@ -617,7 +617,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
 				readMethod, null);
 
@@ -634,7 +634,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + "PropertyTwo", null);
+		Method readMethod = beanClass.getMethod("get" + "PropertyTwo", (Class[])null);
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName, null, null);
 
 		assertNull(pd.getReadMethod());
@@ -669,7 +669,7 @@
 			IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("invalidGetMethod", null);
+		Method readMethod = beanClass.getMethod("invalidGetMethod", (Class[])null);
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName, null, null);
 
 		assertNull(pd.getReadMethod());
@@ -689,7 +689,7 @@
 			IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + "PropertyOne", null);
+		Method readMethod = beanClass.getMethod("get" + "PropertyOne", (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + "PropertyTwo",
 				new Class[] { Integer.class });
 
@@ -760,7 +760,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method writeMethod = beanClass.getMethod("get" + "PropertyTwo", null);
+		Method writeMethod = beanClass.getMethod("get" + "PropertyTwo", (Class[])null);
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName, null, null);
 
 		assertNull(pd.getWriteMethod());
@@ -779,7 +779,7 @@
 			IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + "PropertyTwo", null);
+		Method readMethod = beanClass.getMethod("get" + "PropertyTwo", (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
@@ -797,7 +797,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
@@ -823,7 +823,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
@@ -849,7 +849,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
@@ -875,7 +875,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
@@ -904,7 +904,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,
@@ -918,7 +918,7 @@
 			NoSuchMethodException, IntrospectionException {
 		Class beanClass = MockJavaBean.class;
 		String propertyName = "PropertyOne";
-		Method readMethod = beanClass.getMethod("get" + propertyName, null);
+		Method readMethod = beanClass.getMethod("get" + propertyName, (Class[])null);
 		Method writeMethod = beanClass.getMethod("set" + propertyName,
 				new Class[] { String.class });
 		PropertyDescriptor pd = new PropertyDescriptor(propertyName,

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/FakeFox01BeanInfo.java
Tue May  9 05:58:06 2006
@@ -42,7 +42,7 @@
 		Method get = null;
 		Method set = null;
 		try {
-			get = clazz.getMethod("getFox01", null);
+			get = clazz.getMethod("getFox01", (Class[])null);
 			set = clazz.getMethod("setFox01", new Class[] { String.class });
 		} catch (SecurityException e) {
 			e.printStackTrace();

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooChildBeanInfo.java
Tue May  9 05:58:06 2006
@@ -48,7 +48,7 @@
 	public MethodDescriptor[] getMethodDescriptors() {
 		MethodDescriptor[] mds = new MethodDescriptor[2];
 		try {
-			Method getMethod = clazz.getMethod("getChildName", null);
+			Method getMethod = clazz.getMethod("getChildName", (Class[])null);
 			Method setMethod = clazz.getMethod("setChildName",
 					new Class[] { String.class });
 			mds[0] = new MethodDescriptor(getMethod);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSubBeanInfo.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSubBeanInfo.java?rev=405418&r1=405417&r2=405418&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSubBeanInfo.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/tests/api/java/beans/mock/MockFooSubBeanInfo.java
Tue May  9 05:58:06 2006
@@ -48,7 +48,7 @@
 	public MethodDescriptor[] getMethodDescriptors() {
 		MethodDescriptor[] mds = new MethodDescriptor[2];
 		try {
-			Method getMethod = clazz.getMethod("getText", null);
+			Method getMethod = clazz.getMethod("getText", (Class[])null);
 			Method setMethod = clazz.getMethod("setText",
 					new Class[] { String.class });
 			mds[0] = new MethodDescriptor(getMethod);



Mime
View raw message