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++) {
|
||||
|
||||
@@ -59,7 +59,7 @@ public class DatagramSequencer
|
||||
_uout.writeInt(_lastReceived);
|
||||
|
||||
// make sure the mapped class set is clear
|
||||
Set<Class> mappedClasses = _uout.getMappedClasses();
|
||||
Set<Class<?>> mappedClasses = _uout.getMappedClasses();
|
||||
mappedClasses.clear();
|
||||
|
||||
// write the object
|
||||
@@ -69,7 +69,7 @@ public class DatagramSequencer
|
||||
if (mappedClasses.isEmpty()) {
|
||||
mappedClasses = null;
|
||||
} else {
|
||||
_uout.setMappedClasses(new HashSet<Class>());
|
||||
_uout.setMappedClasses(new HashSet<Class<?>>());
|
||||
}
|
||||
|
||||
// record the transmission
|
||||
@@ -123,9 +123,9 @@ public class DatagramSequencer
|
||||
|
||||
/** The set of classes for which mappings were included in the datagram (or
|
||||
* <code>null</code> for none). */
|
||||
public Set<Class> mappedClasses;
|
||||
public Set<Class<?>> mappedClasses;
|
||||
|
||||
public SendRecord (int number, Set<Class> mappedClasses)
|
||||
public SendRecord (int number, Set<Class<?>> mappedClasses)
|
||||
{
|
||||
this.number = number;
|
||||
this.mappedClasses = mappedClasses;
|
||||
|
||||
Reference in New Issue
Block a user