ZOMG, Narya now perfectly passes our coding standards as enforced by

CheckStyle. The checks are slightly looser than I'd like but way better than
nothing and we get a bunch of other useful warnings like shadowed names and
other handy bits.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5253 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-07-22 14:36:54 +00:00
parent 5c4ab96880
commit 0a893e1de1
33 changed files with 159 additions and 124 deletions
@@ -22,7 +22,7 @@
package com.threerings.presents.util;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import com.samskivert.util.MethodFinder;
import com.samskivert.util.StringUtil;
@@ -43,7 +43,7 @@ public class ClassUtil
* @return the method with the specified name or null if no method with that name could be
* found.
*/
public static Method getMethod (String name, Object target, HashMap<String,Method> cache)
public static Method getMethod (String name, Object target, Map<String, Method> cache)
{
Class tclass = target.getClass();
String key = tclass.getName() + ":" + name;
@@ -80,7 +80,7 @@ public class ClassUtil
} catch (NoSuchMethodException nsme) {
// nothing to do here but fall through and return null
log.info("No such method [name=" + name + ", tclass=" + tclass.getName() +
log.info("No such method [name=" + name + ", tclass=" + tclass.getName() +
", args=" + StringUtil.toString(args) + ", error=" + nsme + "].");
} catch (SecurityException se) {