Harmless casts to make compiling in jdk1.5 happy.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1511 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2004-10-13 00:17:39 +00:00
parent 962ebeec53
commit 4de3c378a3
2 changed files with 3 additions and 3 deletions
@@ -171,9 +171,9 @@ public class TaskMaster
public Object invoke () throws Exception
{
// look up the named method on the source object and invoke it
Method meth = _source.getClass().getMethod(_name, null);
Method meth = _source.getClass().getMethod(_name, (Class[]) null);
meth.setAccessible(true);
return meth.invoke(_source, null);
return meth.invoke(_source, (Object[]) null);
}
public boolean abort ()
@@ -658,7 +658,7 @@ public class StringUtil
try {
Method meth = clazz.getMethod(
fields[i].getName() + "ToString", new Class[0]);
buf.append(meth.invoke(object, null));
buf.append(meth.invoke(object, (Object[]) null));
} catch (NoSuchMethodException nsme) {
toString(buf, fields[i].get(object));
}