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:
@@ -45,7 +45,7 @@ public class ClassUtil
|
||||
*/
|
||||
public static Method getMethod (String name, Object target, Map<String, Method> cache)
|
||||
{
|
||||
Class tclass = target.getClass();
|
||||
Class<?> tclass = target.getClass();
|
||||
String key = tclass.getName() + ":" + name;
|
||||
Method method = cache.get(key);
|
||||
|
||||
@@ -71,7 +71,7 @@ public class ClassUtil
|
||||
*/
|
||||
public static Method getMethod (String name, Object target, Object[] args)
|
||||
{
|
||||
Class tclass = target.getClass();
|
||||
Class<?> tclass = target.getClass();
|
||||
Method meth = null;
|
||||
|
||||
try {
|
||||
@@ -98,7 +98,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 findMethod (Class clazz, String name)
|
||||
public static Method findMethod (Class<?> clazz, String name)
|
||||
{
|
||||
Method[] methods = clazz.getMethods();
|
||||
for (int i = 0; i < methods.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user