Fixed a bunch of type safety bits pointed out by the latest version of Eclipse.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5274 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-07-30 12:58:51 +00:00
parent ca4c5897fb
commit 725f656197
77 changed files with 248 additions and 250 deletions
@@ -52,13 +52,13 @@ public class PeerUtil
S createProviderProxy (Class<S> clazz, final T svc, final Client client)
{
return clazz.cast(Proxy.newProxyInstance(
clazz.getClassLoader(), new Class[] { clazz },
clazz.getClassLoader(), new Class<?>[] { clazz },
new InvocationHandler() {
public Object invoke (Object proxy, Method method, Object[] args)
throws Throwable {
Method smethod = _pmethods.get(method);
if (smethod == null) {
Class[] ptypes = method.getParameterTypes();
Class<?>[] ptypes = method.getParameterTypes();
ptypes[0] = Client.class;
_pmethods.put(method, smethod = svc.getClass().getMethod(
method.getName(), ptypes));