Let the type system know that we don't care what type our classes are.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2262 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2007-12-17 19:45:35 +00:00
parent 1a29ddd025
commit 13bab282c7
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -910,7 +910,7 @@ public class Table<T>
static {
try {
serializableClass = Serializable.class;
Class c = Class.forName("java.lang.reflect.AccessibleObject");
Class<?> c = Class.forName("java.lang.reflect.AccessibleObject");
Class[] param = { Boolean.TYPE };
setBypass = c.getMethod("setAccessible", param);
} catch(Exception ex) {}
+3 -3
View File
@@ -165,10 +165,10 @@ public class ClassUtil
* @return the nearest method located, or null if there is no such method.
*/
public static Method getAccessibleMethodFrom (
Class clazz, String methodName, Class[] parameterTypes)
Class<?> clazz, String methodName, Class[] parameterTypes)
{
// Look for overridden method in the superclass.
Class superclass = clazz.getSuperclass();
Class<?> superclass = clazz.getSuperclass();
Method overriddenMethod = null;
if (superclass != null && classIsAccessible(superclass)) {
@@ -185,7 +185,7 @@ public class ClassUtil
// If here, then clazz represents Object, or an interface, or the superclass did not have
// an override. Check implemented interfaces.
Class[] interfaces = clazz.getInterfaces();
Class<?>[] interfaces = clazz.getInterfaces();
for (int i = 0; i < interfaces.length; ++i) {
overriddenMethod = null;
+1 -1
View File
@@ -642,7 +642,7 @@ public class StringUtil
public static void fieldsToString (
StringBuilder buf, Object object, String sep)
{
Class clazz = object.getClass();
Class<?> clazz = object.getClass();
Field[] fields = clazz.getFields();
int written = 0;