We don't need to read and write wrap straight up calls to readObject() and
writeObject() as that handles nulls for us (and of course because that's how it's done when streaming using reflection). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4704 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -254,7 +254,8 @@ public class InstrumentStreamableTask extends Task
|
||||
}
|
||||
}
|
||||
|
||||
return readWrap(field, name + " = (" + type.getName() + ")ins.readObject();");
|
||||
// no need to wrap streamable instances
|
||||
return (name + " = (" + type.getName() + ")ins.readObject();");
|
||||
}
|
||||
|
||||
protected String getFieldWriter (CtField field)
|
||||
@@ -302,7 +303,8 @@ public class InstrumentStreamableTask extends Task
|
||||
}
|
||||
}
|
||||
|
||||
return writeWrap(field, "out.writeObject(" + name + ");");
|
||||
// no need to wrap streamable instances
|
||||
return "out.writeObject(" + name + ");";
|
||||
}
|
||||
|
||||
protected String readWrap (CtField field, String body)
|
||||
|
||||
Reference in New Issue
Block a user