More code hygiene. Need to do some fiddling to make dispatchers not generate
generics warnings when calling methods with generic types. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@698 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -110,9 +110,9 @@ public abstract class SpotSceneRuleSet implements NestableRuleSet
|
||||
throws Exception
|
||||
{
|
||||
Portal portal = (Portal) digester.peek();
|
||||
Class portalClass = portal.getClass();
|
||||
Class<?> portalClass = portal.getClass();
|
||||
Location loc = portal.loc;
|
||||
Class locClass = loc.getClass();
|
||||
Class<?> locClass = loc.getClass();
|
||||
|
||||
// iterate over the attributes, setting public fields where
|
||||
// applicable
|
||||
|
||||
@@ -87,7 +87,7 @@ public class SpotSceneWriter
|
||||
{
|
||||
// we just add all the visible fields of the location, but something
|
||||
// more sophisticated could be done
|
||||
Class clazz = portalLoc.getClass();
|
||||
Class<?> clazz = portalLoc.getClass();
|
||||
Field[] fields = clazz.getFields();
|
||||
for (int ii=0; ii < fields.length; ii++) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user