harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r405379 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java: java/io/ObjectStreamClass.java org/apache/harmony/luni/internal/reflect/ProxyClassFile.java
Date Tue, 09 May 2006 10:33:57 GMT
Author: tellison
Date: Tue May  9 03:33:53 2006
New Revision: 405379

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

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectStreamClass.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyClassFile.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectStreamClass.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectStreamClass.java?rev=405379&r1=405378&r2=405379&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectStreamClass.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectStreamClass.java
Tue May  9 03:33:53 2006
@@ -919,7 +919,7 @@
 		Class search = cl;
 		while (search != null) {
 			try {
-				Method method = search.getDeclaredMethod("readResolve", null); //$NON-NLS-1$
+				Method method = search.getDeclaredMethod("readResolve", (Class[])null); //$NON-NLS-1$
 				if (search == cl
 						|| (method.getModifiers() & Modifier.PRIVATE) == 0)
 					return method;
@@ -945,7 +945,7 @@
 		Class search = cl;
 		while (search != null) {
 			try {
-				Method method = search.getDeclaredMethod("writeReplace", null); //$NON-NLS-1$
+				Method method = search.getDeclaredMethod("writeReplace", (Class[])null); //$NON-NLS-1$
 				if (search == cl
 						|| (method.getModifiers() & Modifier.PRIVATE) == 0)
 					return method;

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyClassFile.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyClassFile.java?rev=405379&r1=405378&r2=405379&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyClassFile.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/reflect/ProxyClassFile.java
Tue May  9 03:33:53 2006
@@ -715,21 +715,21 @@
 	private Method typeAccessMethod(Class baseType) {
 		try {
 			if (baseType == int.class)
-				return Integer.class.getMethod("intValue", null);
+				return Integer.class.getMethod("intValue", (Class[])null);
 			if (baseType == short.class)
-				return Short.class.getMethod("shortValue", null);
+				return Short.class.getMethod("shortValue", (Class[])null);
 			if (baseType == byte.class)
-				return Byte.class.getMethod("byteValue", null);
+				return Byte.class.getMethod("byteValue", (Class[])null);
 			if (baseType == boolean.class)
-				return Boolean.class.getMethod("booleanValue", null);
+				return Boolean.class.getMethod("booleanValue", (Class[])null);
 			if (baseType == char.class)
-				return Character.class.getMethod("charValue", null);
+				return Character.class.getMethod("charValue", (Class[])null);
 			if (baseType == long.class)
-				return Long.class.getMethod("longValue", null);
+				return Long.class.getMethod("longValue", (Class[])null);
 			if (baseType == float.class)
-				return Float.class.getMethod("floatValue", null);
+				return Float.class.getMethod("floatValue", (Class[])null);
 			if (baseType == double.class)
-				return Double.class.getMethod("doubleValue", null);
+				return Double.class.getMethod("doubleValue", (Class[])null);
 		} catch (NoSuchMethodException e) {
 			throw new InternalError();
 		}



Mime
View raw message